If you want to create your own file format, then you will have to decide how you want the file to be structured. Do you want the file to consist of binary data or text? If you want it to consist of text, then how should this text be structured? Do you want it to use XML or JSON? Or maybe a simpler structure, such as CSV? Or maybe a much simpler structure, like having one single word per line?