Question Resource

rejo2782

New member
Joined
Aug 6, 2014
Messages
1
Programming Experience
Beginner
Hi Friends,

Am new to the programming world, I have situation. I am writing a code for an application. The code will take data from various file such text files, excel files & word files and then perform various task with these data. I now need to take this code to many other system and run. I would like these reference files also to go along with these project like a package. Could some one guide me how to I achieve this?
 
Are the data files going to change at all or will their contents always be the same? If they will change then you simply need to copy the data files along with the EXE. If they are always in the same folder as the EXE or a folder under that then you can use Application.StartupPath in code to build the path. If they will not change then you can actually embed them in your EXE as resources. In some cases, you would then need to extract the resource and save it as a file before using the data. It would depend on the type of file.
 
Back
Top