开发者

Binary structure for a directory with files

开发者 https://www.devze.com 2023-01-18 15:22 出处:网络
I\'m trying to solve the following problem. I want to create a set of directories with files in them , but in memory using C# , using strings / byte arrays, and I am trying to figure out what\'s the f

I'm trying to solve the following problem. I want to create a set of directories with files in them , but in memory using C# , using strings / byte arrays, and I am trying to figure out what's the format and byte sequence for all of this. i mean something like

<magic sequence for top directory header> <magic sequence for file header> </ end file> ... file 2 file 3 ... etc ... &开发者_StackOverflowlt;/magic sequence for the directory header> , etc.

I'm talking about windows formats here.

Could you point me to a location where i can read about this or even better, give me some existing examples?

Thanks ! Angel


What you are looking depends on the filesystem in use. The filesystem defines how files and directories are stored. On windows a common format is FAT32 and NTFS (which is not publically available).

As shown in the link above, the FAT format is specified by Microsoft

0

精彩评论

暂无评论...
验证码 换一张
取 消