Edit a preference file without rewriting the whole file...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Edit a preference file without rewriting the whole file...

Post by Joakim Christiansen »

If I want to change something in a preference file I must rewrite the whole file...
That can be quite anoying some times, please do something about that. :wink:

EDIT: Removed foul language, sorry about that. :)
Last edited by Joakim Christiansen on Sun Aug 14, 2005 3:05 am, edited 3 times in total.
I like logic, hence I dislike humans but love computers.
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

Like File library. CreatePreferences would create (so overwrite an eventual existing file), OpenPreferences() would Open for Reading/Writting and would create it if it wouldn't exist, and ReadPreferences() would open just for reading. I think it would be good. And the possibility to use more than one file would be good too.
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Edit a preference file without rewriting the whole shit.

Post by PB »

Please don't use foul language here, thanks.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Re: Edit a preference file without rewriting the whole shit.

Post by Joakim Christiansen »

PB wrote:Please don't use foul language here, thanks.
It's how I talk, but I'll try to behave, sorry.
I like logic, hence I dislike humans but love computers.
Post Reply