Hi, I am working on the source code for a VB 2008 project and have managed to get everything working like it should except for one tiny problem. It's an engineering application and uses data from four text files for part of the calculations. To read the data from the text files, I'm using the following line in my code :
FileOpen(iFileNum, "C:\AirProp\AirProp.txt", OpenMode.Input)
I'm using the same syntax for the other 3 files also. The four text files are crucial and the application can't run without them. When I build the application on my PC, it runs fine as long as the text files are in the directory specified above. But when I try to publish my application and create an "installation package" so that I can install and run it on any computer, I can't for the life of me figure out how to include the text files as part of the package, so that the installer automatically copies them into the correct directory on the target machine.
Can anybody please tell me what I'm doing wrong or point me to a link or other resource that has a solution to something like this? Thank you in advance.
FileOpen(iFileNum, "C:\AirProp\AirProp.txt", OpenMode.Input)
I'm using the same syntax for the other 3 files also. The four text files are crucial and the application can't run without them. When I build the application on my PC, it runs fine as long as the text files are in the directory specified above. But when I try to publish my application and create an "installation package" so that I can install and run it on any computer, I can't for the life of me figure out how to include the text files as part of the package, so that the installer automatically copies them into the correct directory on the target machine.
Can anybody please tell me what I'm doing wrong or point me to a link or other resource that has a solution to something like this? Thank you in advance.