You can do that in several diffent ways.
If the file is a text file and you want to read one line at a time:
-----------------------------------------------------
dim infile as byte, inline as string
infile=freefile
Open "c:\myfile.cls" for ijput as #infile
while not eof(infile)
line input #infile, inline
wend
close infile
-----------------------------------------------------
Or the entire file in one string:
-----------------------------------------------------
dim infile as byte, inline as string
infile = FreeFile
Open "c:\myfile.cls" For Binary As #infile
instring = String$(LOF(infile), 0)
Get #infile, 1, instring
Close #infile
------------------------------------------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.