Hi All,
I simply want to create one file and then delete it, means I want to access one file subsequently. I am getting the very familiar error as shown in title. (Process can't access the file , it is being used by bla..bla..)
I have tried using file stream and all other stuff that I found from Googling but no success so far.
Does any body have small and neat solution?
in short, I would like to run the following statements without any error.File.Create("C:\\hsp1.txt");
File.Open("C:\\hsp1.txt", FileMode.Open, FileAccess.Read, FileShare.None);
Thank you,
Go to the complete details ...