file is an output file, not an input file