I tried to use the relativ path to my formativ application in the Stringlist.LoadFromFile() function, but it didn’t work. When I declare the full path it works.
The application file *.vbf is located in C:App
In the same folder is also a textfile, which I’d like to load.
I use myStrList.Loadfromfile(“C:AppmyFile.txt”). This works, but when I use use myStrList.Loadfromfile(“myFile.txt”) it doesn’t work. How can I solve this problem? Is it possible to get the path of the currently running applet? So it would be possible to use this path.
- You must be logged in to reply to this topic.