Alternatively you could drop the whole proprietary file format altogether, and go with an open plain text file format like XML, with a plain text style file which renders the XML in the way you want. As you want write protection, this provides it and you can add filters, buttons and other such things. Not to mention its all plain text, so cross platform, future proof etc.
... View more