CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Location
    Penang, Malaysia
    Posts
    2

    How to read the content of a local file.

    Read the content that stored inside a text file.


  2. #2
    Join Date
    Dec 1999
    Location
    Malaysia
    Posts
    56

    Re: How to read the content of a local file.

    Hi,
    First of all, you have to open the file for reading, with this code

    Open "c:\test.txt" for Read as #1
    'then do whatever you want, maybe you would like to pass something to a variable



    Then you close the file after reading

    Close #1



    You have to close the file once you are done with it.I think that's about it. If you want to learn more about this, go to Microsoft's MSDN site at
    http://www.msdn.microsoft.com

    Hope that this helps.


    ____________________________________
    The VB Bugs in my Life...

  3. #3
    Join Date
    Sep 1999
    Location
    Germany
    Posts
    66

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