Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string filename = args[0];//разбиваемый файл
- int partsize = Convert.ToInt32(args[1]);//размер части файла в байтах
- byte[] file = //массив байт разбиваемого файла
- int position = 0;
- for (int i = 0; i < file.Length; i += partsize)
- {
- byte[] block = new byte[partsize];
- for (int j = 0; j < block.Length; j++)
- {
- block[j] = file[position++];
- }
- bloksdict.Add(new BLOCK(block));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement