Update file_writer.cpp