putting comments in text file

Blitz3D Forums/Blitz3D Beginners Area/putting comments in text file

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

i need to create bookmarks
so i know where to read

This isn't really necessary if you write a half decent parser. For example, this could search through the file for a line that starts with "level = ", followed by the number of the level you want to read in. Then, from that point in the file, you read in all the other settings, like "resources = 20", or whatever.

However, for your situation, I think it would probably be best to simply read sequentially through the file at the start of the game and put all the values into an array of types.