Dracil 1 Posted August 22, 2010 Like the title say, i want to add text to a textfile(txt), the textfile will already contain text so its important not to overwrite it, just add. Anyone have any idea how to do this ? Thanks in advance! Share this post Link to post Share on other sites
somdcomputerguy 103 Posted August 22, 2010 FileWrite - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites
Kard0 0 Posted August 22, 2010 I'm new to scripting with AutoIt but I looked a bit in the help file and found this. Directly from Help File, all credit to AutoIT team. $file = FileOpen("test.txt", 1) ; Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWriteLine($file, "Line1") FileWriteLine($file, "Line2" & @CRLF) FileWriteLine($file, "Line3") FileClose($file) Share this post Link to post Share on other sites
omikron48 0 Posted August 22, 2010 Use FileOpen in append mode. Look up the help file. Share this post Link to post Share on other sites