Adding function: writeAccount(), which write binary file into account file