http://www.autoitscript.com/autoit3/docs/f...leWriteLine.htm
I tried using readline along with some regexps to do this. As it is, I have the lines of text the way I want them, but FileWriteLine() doesn't seem to work the same as readline does. It seems to just be the same as FileWrite().
e.g. this is what i have:
$linetoedit = FileReadLine("c:\blah", 3)
$editedline=StringRegExpReplace($linetoedit, "([my regexp])", $replacetext))
FileWriteLine("c:\blah", $editedline, 3)
However, FileWriteLine doesn't work like that, it only appends to the end of the file ... you can only do this:
FileWriteLine("c:\blah", $editedline)
-- unless I'm missing something. Unfortunately my file is really really big, so reading thru every line to recreate the file is something I'd like to avoid.