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 into a string


Dim InString As String
Open "filename.txt" For Binary As #1
InString   = Input (LOF(1), #1)
Close