2
Answers

Read dat file in winforms applications

Photo of raja ramesh

raja ramesh

13y
2.8k
1
Hi,
I am working on winform applications

using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
.....
}

am writing above code to Read DAT file but some times I am getting following exception

"The process cannot access the file 'C:\data\myfile.dat' because it is being used by another process."

Can you tel me how to solve this problem ?

Answers (2)

Next Recommended Forum