I am writing a simple console application that will read xml from a test file and deserialize it to an object.
var s = File.ReadAllBytes("G:\\Temp\\Publishing\\2.txt");
Stream _response = File.OpenRead("G:\\Temp\\Publishing\\2.txt");
var s = File.ReadAllBytes(@"g:\temp\publishing\2.txt");
var s = File.ReadAllBytes(@"G:\Temp\Publishing\2.txt");
I have tried all of the above to read the file and it always throws NotSupportedException
with a message
The given path's format is not supported.
What is the format-error in the above path?