file writers must include fstream, not iostream