Quantcast
Viewing all articles
Browse latest Browse all 12583

How to include txt file into published project?

Hello,

I'm using a txt file as my database in my program, in my code I refer to my file as :

string file = "D:\\VS Projects\\firstProg\\names.txt";

after I published my program and tryed to install it on another computer it gave an exception, that it couldn't find the names.txt..

So, as I understand the file wasn't included into the published version... how should I include it? 


Viewing all articles
Browse latest Browse all 12583

Trending Articles