calculator file written