0

Hello

i want to have a txt file on my application final .exe

the .txt is located at

C:\Users\Timhook\Documents\Visual Studio 2008\Projects\WWTBAM \WWTBAM \bin\Debug\hask.txt

thats my project bin\Debug folder

will it include the this hask.txt file after publishing the application?

thanks

2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by timosoft
1

In the Solution Explorer click Show All Files, navigate to your .txt file, right-click on it, and select Include In Project. It will then be in your output

0

thanks alot. thats quite easy. so can my application also write to the txt file in that location. bin/debug?

1

if your executable is in the folder where the text file resides then

Application.StartupPath & "\someText.txt"

will work

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.