|
|
@ -3,15 +3,15 @@ internal class Program
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private static void Main(string[] args)
|
|
|
|
private static void Main(string[] args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BinaryReader br = new BinaryReader(File.OpenRead(args[0]));
|
|
|
|
BinaryReader br = new(File.OpenRead(args[0]));
|
|
|
|
|
|
|
|
string path = Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//";
|
|
|
|
|
|
|
|
|
|
|
|
int size = br.ReadInt32();
|
|
|
|
int count = br.ReadInt32();
|
|
|
|
for (int i = 0; i < size; i++)
|
|
|
|
for (int i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string name = br.ReadString();
|
|
|
|
string name = br.ReadString();
|
|
|
|
Directory.CreateDirectory(Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//" + Path.GetDirectoryName(name));
|
|
|
|
Directory.CreateDirectory(path + Path.GetDirectoryName(name));
|
|
|
|
using FileStream FS = File.Create(Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//" + name);
|
|
|
|
BinaryWriter bw = new(File.Create(path + name));
|
|
|
|
BinaryWriter bw = new(FS);
|
|
|
|
|
|
|
|
bw.Write(br.ReadBytes(br.ReadInt32()));
|
|
|
|
bw.Write(br.ReadBytes(br.ReadInt32()));
|
|
|
|
bw.Close();
|
|
|
|
bw.Close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|