There is one text file in hard drive which continuously writing by some application XYZ
.
Now, from application ABC
, I am trying to read the file, but I am getting error,
the process cannot access the file because it is being used by another process
Note - I don't have control over XYZ
application, still is there any way to read the file from application ABC
?
byte[] data = File.ReadAllBytes(File.FullName)