G
Guest
I use the following code to create a new FileStream
Dim fs As New FileStream(txtSourceFile.Text, FileMode.Open, FileAccess.Read, FileShare.None
where txtSourceFile is a text box which contains the path to the specified file
The problem is that whenever I try to open a file with the extension ".doc"
I get the following exception thrown at my face
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dl
Additional information: The process cannot access the file "C:\Documents and Settings\My Documents\myFile.doc" because it is being used by another process
with other file formats (gif,jpg,pdf,etc.) the program works fine
How can I solve the problem
Thanks in advance
ALO
Dim fs As New FileStream(txtSourceFile.Text, FileMode.Open, FileAccess.Read, FileShare.None
where txtSourceFile is a text box which contains the path to the specified file
The problem is that whenever I try to open a file with the extension ".doc"
I get the following exception thrown at my face
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dl
Additional information: The process cannot access the file "C:\Documents and Settings\My Documents\myFile.doc" because it is being used by another process
with other file formats (gif,jpg,pdf,etc.) the program works fine
How can I solve the problem
Thanks in advance
ALO