I am using this code to read data from INI file this works almost all the time perfectly but some time it unable to read all the data but return only some part of the file. And if i change tStream.ReadAll to tStream.Read(lenoffile) it works fine. Just wanted to know why readall not working![]()
my file sometimes contains special chracters![]()
Code:Dim objFile As FileSystemObject Dim strData As String Dim tStream As TextStream On Error GoTo ErrHandler Set objFile = New FileSystemObject Set tStream = objFile.OpenTextFile(App.Path & "file.ini", ForReading) strData = tStream.ReadAll




Reply With Quote