Executable !

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

Executable !

Post by sarmednafi » Fri Apr 27, 2018 11:46 am

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: 51
Joined: Tue Apr 03, 2018 1:34 pm

Re: Executable !

Post by guest » Fri Apr 27, 2018 12:50 pm

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: 14
Joined: Fri Apr 06, 2018 6:27 am

Re: Executable !

Post by sarmednafi » Fri Apr 27, 2018 3:02 pm

GOOD,

Thanks.

Post Reply