File.Create() on Line 42 opens an file stream (Does not directly close it!)
File.WriteAllText() on Line 44 trys to open an file stream too -> IOException: sharing violation
Solution:
Remove File.Create() on Line 42 cuz File.WriteAllText() creates a new file automatically
Bug/Error
File.Create() on Line 42 opens an file stream (Does not directly close it!) File.WriteAllText() on Line 44 trys to open an file stream too -> IOException: sharing violation
Solution:
Remove File.Create() on Line 42 cuz File.WriteAllText() creates a new file automatically