Hello all,Can anyone pls tell me how to specify relative paths in a website??
i have created a website and want to access a text file present in the website root directory.i want to know the no. of records in that text file
i have written the following code
int length = new StreamReader(@" \Files\Names.tx t").ReadToEnd() .Split(new char[] { '\n' }).Length;
It is giving file not found exception!
Plz help
Thanks in advance
i have created a website and want to access a text file present in the website root directory.i want to know the no. of records in that text file
i have written the following code
int length = new StreamReader(@" \Files\Names.tx t").ReadToEnd() .Split(new char[] { '\n' }).Length;
It is giving file not found exception!
Plz help
Thanks in advance
Comment