07-04-2003, 08:37 AM
let's say i'm writing a program that does the following:
1. open two text files, one as INPUT and one as OUTPUT
2. reads in lines from the INPUT file and writes them to the OUTPUT file
3. closes both files
when the program is done I want to have made an exact copy of the input file.
I'm running into problems at the end of lines:
...becomes...
However,
...becomes...
it's not really a percent sign, it's like a musical note or something. It's CHR$(13) as seen by the EDIT program.
Any suggestions?
*peace*
Meg.
btw, I know I can just SHELL and copy the file. That doesn't help I'm just too lazy to go into the details of the program unless I have to.
1. open two text files, one as INPUT and one as OUTPUT
2. reads in lines from the INPUT file and writes them to the OUTPUT file
3. closes both files
when the program is done I want to have made an exact copy of the input file.
I'm running into problems at the end of lines:
Code:
Hello my name is Megan.
...becomes...
Code:
Hello my name is Megan.
However,
Code:
Hello my nam
e is Megan.
...becomes...
Code:
Hello my nam%e is Megan.
it's not really a percent sign, it's like a musical note or something. It's CHR$(13) as seen by the EDIT program.
Any suggestions?
*peace*
Meg.
btw, I know I can just SHELL and copy the file. That doesn't help I'm just too lazy to go into the details of the program unless I have to.