CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Location
    California, USA
    Posts
    40

    How do you read from a file?

    how do you read a file? say a .txt file. thanks

    PanasonicSubz

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

    Re: How do you read from a file?

    dim h as integer
    h = freefile
    dim strLine as string
    open "yourfile.txt" for input as #h
    do while not eof( h)
    line input #h, strLine
    ' do something with strLline
    Loop
    close #h




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

    Re: How do you read from a file?

    Look also follow sample about file:

    How to load a text file into a textbox in one call.
    http://vbcode.webhostme.com/en/code.asp?id=57




    [email protected]
    http://vbcode.webhostme.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

Featured