Results 1 to 4 of 4

Thread: Help in writing to the end of files

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Australia
    Posts
    7

    Arrow

    how do u save to a file without the enter key being pressed at the end. It adds i more line than nedded to the text file and the computer is having problems because i'm using the textbox to load file by that name and the computer can't find a nothing file name.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    filebox

    use a (filebox) not a textbox to list your files...under components, select it, add it and use it..

    not sure exactly what your are after..why do you even
    have to hit enter to save a file unless it defaults to
    some click event.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Member
    Join Date
    Aug 1999
    Location
    metairie, la usa
    Posts
    40
    Hi,
    I know exactly what your talking about. You need to append a ; to the end of your variable in your print statement



    stringData="sfasdfasdfasdfasdfasdf"
    open "C:\TEXT.TXT" for output as #1
    print #1,stringData;
    close #1

    appending the ; will stop the unwanted carriage return

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    You would like to open your file for Append if you want to add information at its end.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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