PDA

Click to See Complete Forum and Search --> : Appending to files - adding to the end of a line, i dont want to!


Nov 12th, 1999, 12:46 AM
can anyone please tell me why an app i am writing is adding text to the end of an already existing line in a file??

the original file:

AAAAAAA
BBBBBBB
CCCCCCC


and after running my app:


AAAAAAA
BBBBBBB
CCCCCCCDDDDDDDD


i have appended to loads of files using many different apps, i am not using anything unusual to add the text to the file, but its doing it anyway! I am aware that you dont need to manually put VBCRLF at the end of the PRINT statement. Hellllllllppppp! :(


------------------

Wossname,
Email me: wossnamex@talk21.com :)

Aaron Young
Nov 12th, 1999, 01:25 AM
If you look at the Original File, you'll probably find the last Character is C with no CRLF, as this then is the Physical end of the File, that's where your Appended Text/Data will be added.

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net