Mock file writer