Read a Text File Line by Line

Submitted by:Jhon Brain

Date added:03 October, 2013

Category:Visual Basic

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

Tags: read file , read line

Code Snippet:

    theFile=FreeFile
Open File_Path_String For Input As theFile ' Open file for input.
Line Input theFile, MyString ' Read single line into a variable.
Close theFile
 
 

Comments