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 all at one time


'read an entire text file into a string
Dim temp As String
Open filename For Input As #1
temp = Input (Lof(1),#1)
Close #1