What is the correct way for handling multithreaded file access to the StorageFile
object?
After creating a StorageFile
, I write to it using FileIO.AppendTextAsync
.
This works, but as soon as multiple threads call FileIO.AppendTextAsync
, I get Access Denied errors - presumably because a previous call to it, is still running.
How do I deal with this situation?