Page 1 of 1

Replace lines in a file

Posted: 12 Jan 2019, 15:34
by Seeds
I have my code create and load a save file. The save file is simply a bunch of variables saved per line. Now I want the user to be able to save/replace about 15 specific variables to that file when the user presses save (While leaving the rest of the lines in the file intact). I figured since FileReadLine,,, was a thing there'd be an opposite FileReplaceLine, but it doesn't appear so easy.
Thanks.

Re: Replace lines in a file

Posted: 12 Jan 2019, 17:19
by gregster
Thought about using an ini-file: IniRead, IniWrite ?

Re: Replace lines in a file

Posted: 12 Jan 2019, 17:43
by mast4rwang
you can easily write your own replaceLine function :D