Here's what I have so far, it copies a letter at a time. But I want to fix it so that it copies a line at a time. How could I do that?
Rem Project: text copier 2
Rem Created: Tuesday, June 10, 2014
Rem ***** Main Source File *****
cls
delete file "DMH2.txt" : open to read 1,"DMH1.txt" : open to write 2,"DMH2.txt"
if file open(1) and file open(2)
repeat
read word 1,a rem --- Here...I want to read a sentence at a time, not just a letter at a time, how?
print a
`if a = 32 then goto skip
write word 2,a rem --- Here.....I want to write a sentence at a time, not just a letter at a time, how?
skip:
until file end(1)
else
print "failed to open both files!"
endif
close file 1
close file 2 ` `<<<<<<<<<<< This effectively saves the file to disk already.
print "done!"
wait 10000
wait key
end
.