I have a vi that at start should read a txt(I gave it .cfg extension to help it stand out but it is a txt file) file and place the contents of the txt file in a string control. The last step before closing the vi is the contents of the string control is saved to the before mentioned txt file. The txt file contains a path to a specific directory. Everything works fine and the vi performs perfectly but as soon as I make an executable the txt file is not read from or written to. I included a picture of the read and write code I am using. I have sifted through the forums and tried including the .cfg file in the build as a support file but nothing I do seems to work, again the code works perfect until I make an executable. Any suggestions would be greatly appreciated.
Are you getting any specific error messages? I think the problem may arise from using the 'Current VI's Path' path. Have a look a this link in which Dennis Knutson gives a possible solution to file path problems and executables. Hope this helps.