insert character every new line

BlitzMax Forums/BlitzMax Programming/insert character every new line

ckob(Posted 2007) [#1]
I have a csv file I would like to run through blitzmax and insert a character at the end of each line is this possible?


grable(Posted 2007) [#2]
Yes.. the simple version:
open the file in read mode and another in write mode,
read each line from the in file and write it to the out file with the added character.
delete the original and rename the changed copy.


ckob(Posted 2007) [#3]
wow i cant believe i didn't think of that thanks for showing me the obvious :)