Executable !

Discussions related to the extensions to the language available in LBB
sarmednafi
Posts: 37
Joined: Fri Apr 06, 2018 6:27 am

Executable !

Post by sarmednafi »

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
guest
Site Admin
Posts: 198
Joined: Tue Apr 03, 2018 1:34 pm

Re: Executable !

Post by guest »

sarmednafi wrote: Fri Apr 27, 2018 11:46 am next time we run the program, we will find it updated
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.
sarmednafi
Posts: 37
Joined: Fri Apr 06, 2018 6:27 am

Re: Executable !

Post by sarmednafi »

GOOD,

Thanks.