News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

INI files warning

Started by thaaks, October 14, 2008, 03:43:03 PM

Previous topic - Next topic

thaaks

I just tried to read and store game settings from and into an ini file using the slib IniFiles.
The Slib is dead simple to use but dangerous in one point: the filename!

If the filename of your ini file is not an absolute path it is put into the WINDOWS directory. Just name your ini file "system.ini" for example and you have fun for several days  :P

This is not a bug in PB but works as designed (by Microsoft). You can read it here. Just read the explanation about the FileName$.

I thought I'd mention it. Maybe it finds it's way into the inifiles help section of PB  ::)

Cheers,
Tommy