T
TC
Hello,
I'm trying to read a text file located in the top folder of the virtual
directory and I'm receiving the following error:
"Could not find a part of the path"
Below is the code that I'm using:
string MyFile;
MyFile =Request.ApplicationPath + "//sample1.txt";
StreamReader srReader;
srReader = new StreamReader(MyFile);
txtMessage.Text = srReader.ReadLine();
I have tried both "Windows" and "None" for "Authentication mode".
Any ideas?
Thanks & Regards,
TC
I'm trying to read a text file located in the top folder of the virtual
directory and I'm receiving the following error:
"Could not find a part of the path"
Below is the code that I'm using:
string MyFile;
MyFile =Request.ApplicationPath + "//sample1.txt";
StreamReader srReader;
srReader = new StreamReader(MyFile);
txtMessage.Text = srReader.ReadLine();
I have tried both "Windows" and "None" for "Authentication mode".
Any ideas?
Thanks & Regards,
TC