Implemented FileWriter.