Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Read text file one line at a time


Dim NewLine As String
Open "filename.txt" For Input As #1
While Not EOF(1)
   Line Input #1, NewLine
    'do something with NewLine
Wend