dotnetrob666
New member
- Joined
- Jul 27, 2006
- Messages
- 1
- Programming Experience
- Beginner
In the solution explorer, you can right-click/Add new item../Text File and it adds a text file to the project. How can you then access this text file in code to read it?
I'm storing some external parameters I need to read as a text file and figured I'd use the internal textfile vs. accessing it on the local drive in case I move the project around, but can't see how to access the file in code.
It shows the full path in the properties, but this will change if I move the project, so don't want to hardcode that path either if possible.
Thanks.
I'm storing some external parameters I need to read as a text file and figured I'd use the internal textfile vs. accessing it on the local drive in case I move the project around, but can't see how to access the file in code.
It shows the full path in the properties, but this will change if I move the project, so don't want to hardcode that path either if possible.
Thanks.