Improved handling of writing entire files in CsvInterface