Replace lines in a file

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Seeds
Posts: 87
Joined: 31 Dec 2018, 01:39

Replace lines in a file

12 Jan 2019, 15:34

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.
gregster
Posts: 9087
Joined: 30 Sep 2013, 06:48

Re: Replace lines in a file

12 Jan 2019, 17:19

Thought about using an ini-file: IniRead, IniWrite ?
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Replace lines in a file

12 Jan 2019, 17:43

you can easily write your own replaceLine function :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww and 230 guests