CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: File I/O

  1. #1
    Join Date
    Mar 2001
    Posts
    7

    File I/O

    Hello,

    Does anyone know how to do simple file i/o??

    I would like to open a file for read and then parse it line by line.

    Thanks in advance,
    notacoder



  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: File I/O

    Open "c:\temp\temp.txt" For Input As #1 'to read from
    Do While Not EOF(1)
    Line Input #1, sLine
    Loop
    Close #1



    Open "c:\temp\temp.txt" For Output As #1 'to write to
    Print #1, txtLetter.Text
    Close #1


    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Mar 2001
    Posts
    7

    Re: File I/O

    Great! Thanks a lot!


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