I'm developing a general file format for all my applications. It should be used globally. I was just wondering: what should it need? I mean, features, like the list below.
What I have now:
- File Type (fixed-length 5bytes long string) - It's a kind of iD. Since the different applications use this same format, there must be a way to recognize what file is yours and what file isn't. It's length is fixed. Eg: I have an application, GIF editor, my iD will be "GIFED" of "EDITG", or anything similar.
- File Author (limited to 255 bytes) - The person/company who created it. It can also be the name of the program which created it. Eg. "Millenium", "Microsoft Corp." or "Mozilla Firefox"
- File Comments (limited to 255 bytes) - For storing general information about the file. Eg: I have an IM client. I want files for each account. The file author section will be the name of my application, and the comments section will cover all information about my account: e-mail, name, age, etc.
- File Chunks : Unlimited (unlimited chunks, not actual data in the chunk) packs of data which each have 3 parts:
- Name (limited to 255 bytes) - Chunk name, should be a unique identifier, not forced tho.
- Comments (limited to 255 bytes) - Like the file comments, additional information for this chunk.
- Data (limited to 16777215 bytes, or &HFFFFFF, which is approx. 16.7 kb) - The actual content of the chunk, can be a configuration file, anything, reallyl
So what do you people think of it? What should I add more?