Results 1 to 2 of 2

Thread: Writeing/Reading TXT Files/Help

  1. #1

    Thread Starter
    Addicted Member slashandburn's Avatar
    Join Date
    Aug 1999
    Location
    Marietta, Ga
    Posts
    229

    Post

    I need help on how to Open TXT,HTM,ANY TEXT THING for a programe and put it in a box and then write a TXT,HYM file with whats in the text box.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    Use code simular to this:

    Dim iFile As Integer

    iFile = FreeFile
    Open "c:\MyFile.txt" For Input As #iFile
    Text1.Text = Input(LOF(iFile), iFile)
    Close #iFile
    'to write the file
    iFile = FreeFile
    Open "c:\YourFile.txt" For Output As #iFile
    Print #iFile, Text1.Text
    Close #iFile

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



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