AppendPreferenceFile (Filename.s)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

AppendPreferenceFile (Filename.s)

Post by Hroudtwolf »

Hello Fred and PureBasic-Team,

My great wish for a later PB-Version is an append-function for preferencefiles.

In example:

Code: Select all

if AppendPreferenceFile ("MyPref.pref")
  PreferenceGroup ("Topic")
  WritePreferenceString ("config","value") 
ClosePreferenceFile ()
My examplecode would add all setted values to the end of a preferencefile.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

This allready works. Just use OpenPreferences()
quidquid Latine dictum sit altum videtur
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Ah ok. :oops: Thank you.

I never tried it.
Post Reply