PDA

View Full Version : Quick TXT Question


ScottDuncan
02-10-2005, 01:14 PM
I need to add a return (new line) in a txt,is it "/n" or something like that?

Also is there a method for replacing a particular line number in a txt?

like, goto line 24
if BLANK then
WRITE TEXT
else
OVERWRITE TEXT
end
?

Lorne
02-10-2005, 01:34 PM
A newline on Windows systems consists of a carriage return and linefeed, which can be represented in strings using: "\r\n".

To replace a line in a text file, you might want to check out the TextFile.ReadToTable and TextFile.WriterFromTable actions.

ScottDuncan
02-11-2005, 10:49 AM
Thanks Lorne