c# - Extracting Byte Arrays from a File -
i'm trying read file , extract 2 blocks of data, let's call them block1 , block2, file file contain many blocks of data. both blocks need returned in byte array. block1 begin @ place in file line begins "block1:" followed number of bytes read. block2, not appearing after block1, begin @ place in file line begins "block2:" followed number of bytes read. limited .net 3.5 @ highest.
you can use file.readallbytes
, extract blocks returned byte[]
using 1 of array.copy
overloads if know indexes in.
Comments
Post a Comment