I am trying to read txt file in C# but having error that
The given's path not supported
I have done this a lots of time in application. But I don't know what is the issue. Here is my code:
var filePath = @"E:\P1.txt";
string[] lines = System.IO.File.ReadAllLines(filePath);
It throws exception that path not supported. What's the issue?