
Getting a single char, Putting a single char.
Quote:
>Hi,
> I am new at VB but I wanted to write a program that extracted
>e-mail addresses out of a text file. I tried to 'get' a single character
>out of a text file and put a single character into another text file. I
>used random files and made each character a record but I had problems.
"Putting" a single char is easy. Just use
print #handle, "A";
Don't forget the semicolon!
For "getting" one char, use
a$ = input$(1,#handle)
See help.
One snag: "The Input[$] function can only be used with files opened in
Input or Binary mode.". No Random mode.
Gent (Ghent, Gand), Belgium,
Europe,
3rd planet from the sun.