XML or classic prefs file?

2 posts / 0 new
Last post
walkero
walkero's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 2009-05-03 16:54
XML or classic prefs file?

Hello to all.
I would like to ask you if it is better to use the old classic encoded prefs files for storing the preferences of our own programs, or the new XML files that was introduced with OS4.

I'm sure both have advantages and disadvantages, but what you prefer? What should new programmers like me prefer?

salass00
salass00's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2011-02-03 11:27
I would say to go with XML

I would say to go with XML using application library as it's very easy to do and saves a lot of work with creating your own format and routines for parsing it.

As for "old classic encoded prefs" that is hardly what could be called a standard as it's just a "FORM PREF" IFF file with custom custom chunk types thrown in containing binary data (you might as well use a completely own binary format in this case).

Log in or register to post comments