开发者

Binary structure for a directory with files

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜