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 character at a time


Dim Char As String * 1
Open "filename.txt" For Input As #1
While Not EOF(1)
    Char = Input $(1,#1)
Wend