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
    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
Ziska
Posting Frequency
Posting Frequency
 
Posts: 1164
Joined: Sat Sep 22, 2012 4:51 am

Advertisement

Read a Text File Line by Line

Return to Visual Basic


Link to: Read a Text File Line by Line
URL:
BBCODE:
HTML:

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

 ® PcLayer.com 2009-2012 ©   All Rights Reserved