Re: Where does Fl_Preferences file actually get stored?
"anmol....
Apr 30, 2021
I am copying a default version of the prefs file into a string during compilation. When the constructor is called (i.e. runtime), I detect the absence of a file and copy the default file.
Can I confirm that the prefs file is created *ONLY* after the first read (i.e. get()) call ?
On Saturday, April 25, 2015 at 12:46:47 PM UTC+5:30 Matthias Melcher wrote:
Why does reading a value create a file? Well, I saw the preferences as a database, and tried to provide database access, not file access (this is why I never published the format of the file or the location. It simply should not matter). Reading an entry creates the entire database structure and file. You can mix reading and writing calls at any time. It's always random access, so it always requires the infrastructure.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.