Understanding broker.prefs

Hi,

I would like to understand broker.prefs, in particular what format it is exactly (custom made I'm assuming), how to change it programmatically and if there any resources, tools or APIs available to working with this file (format).

Having to swap between different broker.prefs files seems like a very poor and redundant solution. I was hoping there is a better way.

Some sources I have read before posting this:

http://www.amibroker.com/guide/x_files.html

Don't touch broker.prefs.

It is binary file that you are NOT supposed to write / modify. It is written solely by AmiBroker when you change preferences and its format is NOT public and subject to sudden and unpredictable changes when version is upgraded. If you write to this file you are likely to corrupt it and cause software malfunction.