Richard,
Those files we can be embedded into one executable file of our program, can we embed a file with data that we write, changed or deleted, and we will find our data next time we run the program, we will find it updated? Or it is better not to embed data file into our executable?
Regards,
Sarmed
Executable !
Re: Executable !
Yes, when you next run the program it will replace the file with the original embedded version, and any changes will be thrown away!
The best thing to do is to embed an 'initial' ('default') data file, then when the program runs it can check whether a 'user' data file exists: if not it should create a new file by copying the embedded file. If the 'user' data file does exist, it is left unchanged.
Richard.