Results 1 to 2 of 2

Thread: Saving Text

  1. #1

    Thread Starter
    Addicted Member WilliamRobinson's Avatar
    Join Date
    Feb 2005
    Posts
    219

    Saving Text

    VB Code:
    1. FileNum = FreeFile
    2. Open "C:\test.txt" For Output As FileNum
    3. Print #FileNum, Text1.Text
    4. Close FileNum

    I have the above code to save my text but everytime i save it overwrites the current test.txt file with the text in textbox1 when i just want it to add to the txt file everytime i save.

    Cheers, William
    Nothing is Impossible you say?......Try slamming a revolving door!

  2. #2
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Saving Text

    VB Code:
    1. Open "C:\test.txt" For Append As FileNum


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