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

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

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

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

Application.StartupPath & "\someText.txt"

will work

ok. thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.