Set Variable FILEDATA to 
Set Variable EOFCHECK to FALSE
Set Variable ALLDATA to 
 
Comment: Read the text file line-by-line and append the data to variable ALLDATA.
 
while Variable EOFCHECK Equals FALSE loop
  Read from Text File C:\Temp\TestFile.txt into Variable FILEDATA (get EOF into EOFCHECK)
  Set Variable ALLDATA to $ALLDATA$$NEWLINE$$FILEDATA$
  MessageBox: Data, $FILEDATA$$NEWLINE$$NEWLINE$$EOFCHECK$
wend
 
Comment: Display the stuff we've read and replace some existing text.
 
MessageBox: All data, $ALLDATA$
Replace SOMETHING_HERE with This is the new text in variable ALLDATA
MessageBox: All data, $ALLDATA$
 
Comment: You might need to delete the file and write the data to a new one?
Comment: The write to text file only lets you write to the start or end of the file.
Comment: It doesn't let you overwrite a file. Leastways I can't see a way of doing that with my limited research. :-)
 
Write into Text File C:\Temp\TestFile.txt from Value $ALLDATA$ (at end of file)
 
