I have an application that is going to save it's own custom project files (just like Visual Basic saves it's own project files), and I don't know what's a good way to do this. I don't want to save the files in Binary mode.
The project files will contain only Integers and Strings. No binary data.
There will be approximately 100 parameters that will need to be saved to the project file.
This is what I'm thinking of doing...
The problem is when it comes to opening the files. How do I make the program read the first line in the project file, return the value and store it in a new variable, and then go to the next line until the eof the is reached?Code:Dim IntroEnabled As Boolean Dim IntroDir As String 'And many more variables... Open Filename For Output As #1 If IntroEnabled = True Then BoolValue = 1 Else BoolValue = 0 End If Write #1, BoolValue Write #1, IntroDir 'And so on.... Close #1
Thank you,
Simon Bingier




Reply With Quote