Pushing before going to school. My code does not write to file but outputs proper errors.