If I have a .reg file I cant seem to read it. Just using the simple code :
I get input past end of file. If I manually cut and paste this info from the file into a new text doc it works fine. I cant seem to find any info anywhere as to why this happens. As far as I know there are no hiddent characthers in the file correct?
Thanx a lot guys
Code:
Public Function ReadFromText(sFileName As String) As String
'On Error Resume Next
Dim fNum As Integer
fNum = FreeFile
Open sFileName For Input As #fNum
ReadFromText = Input$(LOF(fNum), #fNum)
Close #fNum
End Function
I get input past end of file. If I manually cut and paste this info from the file into a new text doc it works fine. I cant seem to find any info anywhere as to why this happens. As far as I know there are no hiddent characthers in the file correct?
Thanx a lot guys