Read a Text File Line by Line


/ Published in: Visual Basic
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. theFile=FreeFile
  2. Open File_Path_String For Input As theFile ' Open file for input.
  3. Line Input theFile, MyString ' Read single line into a variable.
  4. Close theFile

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.