Text file I/O helper for Firefox/Thunderbird addons