Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
C# Express 2008, relative project path not working
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
ssgrowntrunks
15y
6.6k
1
Reply
I added a simple text file to my project. But when I try to read from it, an error says it can't find the file. The file is called 'Exes.txt'. What I tried is : string s = System.IO.File.ReadAllText("Exes.txt")); when debugging it looks in [projectfolder]/bin/debug/, when not debugging it looks in [projectfolder]/bin/release/. The file is at [projectfolder]. How can I access the file with a relative path?
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Visual Studio - Crystal Reports connectivity in clients
Controlling other control,when receiveng data from serial port.