Autohotkey: modify text file without ever opening -
i'll start off saying i've sat around trying figure out 8hrs , i'm coming here ask help. i want able have text file starts @ 0 , increase 1 every time press hotkey. want happen without having file open. used counter. ken made point regard knowing initial value. if want add number @ bottom can use: fileappend, %counter%`n, c:\temp\counter.txt or if want have 1 number: filedelete, c:\temp\counter.txt fileappend, %counter%, c:\temp\counter.txt if want store variable, can use .ini files store various variables. iniwrite, %textcounter%, %a_scriptdir%\counter.ini, counter, nr iniread, textcounter, %a_scriptdir%\counter.ini, counter, nr