I have problems reading a file to process it as it is blocked by another application. Is there a way to open it "read only"?
I' m using:
Imports System.IO
If System.IO.File.Exists(fName) = True Then
Dim tmpstream As StreamReader = File.OpenText(fName)
TextLine = tmpstream.ReadToEnd().Split(Environment.NewLine)
...
tmpstream.Close() 'close reader
Else
MsgBox("File doesn't exist")
End If
Thanks a lot for your help
I' m using:
Imports System.IO
If System.IO.File.Exists(fName) = True Then
Dim tmpstream As StreamReader = File.OpenText(fName)
TextLine = tmpstream.ReadToEnd().Split(Environment.NewLine)
...
tmpstream.Close() 'close reader
Else
MsgBox("File doesn't exist")
End If
Thanks a lot for your help