I've got a method which performs a delete and create file. there are issues with the threads all trying to access the file at the same time.
How can i limit access to the file?
public static Save(string file)
{
//1.Perform Delete
//2.Perform Write
}
Note that the method is static so is it possible to lock the process within the static method?
Cheers