Read a Text File Line by Line

Discussion on programming using the language Visual Basic. Discussion on different topics related to Visual Basic.
  • Advertisement

Read a Text File Line by Line

Postby Ziska » Sun Sep 23, 2012 10:08 am

Read a Text File Line by Line

Basic commands for reading a text file one line at a time.

Code: Select all
    Open File_Path_String For Input As theFile ' Open file for input.
    Line Input theFile, MyString ' Read single line into a variable.
    Close theFile
Posting Frequency
Posting Frequency
Posts: 1164
Joined: Sat Sep 22, 2012 4:51 am


Return to Visual Basic


  • Related topics
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

 ® 2009-2012 ©   All Rights Reserved