I would also consider using an actual data format so you can use an existing library to parse the file, otherwise you'll have to write a custom file parser.