CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    24

    How can I write some text to file named "test.txt"

    Good afternoon everybody!

    Sorry for my lousy english.
    I really hope someone can help me. I'm a beginner who needs help. I have a project and I need to save some information to a text-file. How can I do that. I know there are some
    Open "something" For Output As #1
    and so on, but I don't know how to use them right.

    Please, HELP

    Micahel


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How can I write some text to file named "test.txt"

    dim hFile as integer
    hFile = freefile
    open "yourfile" for output as #hFile
    print #hFile, "yourstring"
    close hFile


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

Featured