Variable path names

Blitz3D Forums/Blitz3D Beginners Area/Variable path names

I had searched through the file path examples and have not been able to resolve a coding problem. I have used the following code to try and read a file path from an .ini file.

String manipulation resolved my no file found problem.

Removed original code, updated code below. The reason my variable path was not being recognised was it was constructed :-

"data1.dat"

I have included the code I 'hacked' together to strip of the speechmarks from the pathname. Hope this is useful to somebody.....

When I hard coded the path, it worked fine. But when I attempted to use the 'variable' I had read in from a .txt file, the file could not be found.