Posted on: 8/9/2013 8:27:57 PM | Views : 251

Hello!
I have library - "someLibrary" in the "myWebProject"(Asp MVC 4 project). There is some function in "someLibrary" where i need to open some constant file: "someLibrary/someFile.txt"
If i try to do it in this way:
HttpContext.Current.Server.MapPath("someFile.txt") Program try to open it in this way: myWebProject/someFile.txt
If i try to do it like this:
using(var s = new StreamReader("someFile.txt")) { //... } Progam try to open whis file in the path of Microsoft Shared/DevServer/11.0 path. How can i open this file?
...

Go to the complete details ...