Results 1 to 2 of 2

Thread: Appending to files - adding to the end of a line, i dont want to!

  1. #1
    Guest

    Post

    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: [email protected]

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    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
    [email protected]
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width