Hi I have a method with the code below to create a file.
byte streamBytes = new byte[fileStream.Length];
fileStream.Read(streamBytes, 0, streamBytes.Length);
fs.Write(streamBytes, 0, streamBytes.Length);
But the second time I run the method from the program I get the error
The process cannot access the file "C:\DOCUME~1\xxx\LOCALS~1\Temp\MyFile.xsd" because it is being used by another process.
Anybody know of a workaround