I need to read data from text files and use the same in my application. Im using VB 6.0.
What commands do I use? Some Sample code would be highly appreciated.
If myFSO.FileExists(IN_sFilePath) Then
Set myTextStream = myFSO.OpenTextFile(IN_sFilePath, ForReading)
myString = myTextStream.ReadAll()
Call myTextStream.Close
End If
'Assign Return Value
ReadTextFileAsString = myString