Wrapper for writing to files.
Method to save hexchat.conf