Jump to content

How do file formats work?


Recommended Posts

How do file formats work and how do you create new file formats?

 

I couldn't find books which discuss file formats. There are many books on computer architecture/organization, data structures, compilers etc but I couldn't find any books which teach the basics of file formats and how to create file formats.

 

So if anyone could recommend any, this would be highly appreciated.

Edited by Uri
Link to comment
Share on other sites

http://en.wikipedia.org/wiki/File_formats

 

What you do is you write a specification, so you write a document that tells others (and reminds you) what the data in the file means. And then you decide to call it a .uri and then whenever you write a .uri file you can use your original document to understand what it means. If other people adopt the same file format and also call it a .uri then you have created a convention which people stick to... There's not much more to it than that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.