Hello guys.
Can I send to a variable (in one shot) a text file, without doing all that stuff of
"Do While Not EOF..."?
Thank you.
Printable View
Hello guys.
Can I send to a variable (in one shot) a text file, without doing all that stuff of
"Do While Not EOF..."?
Thank you.
vb Code:
Dim sFileContent As String, hFile As Integer hFile = FreeFile Open "c:\theFile.txt" For Input As #hFile sFileContent = Input(LOF(hFile), hFile) Close #hFile
Ok thank you! :)
It is just what I wanted.