dataToFileWriter now has a writePlotData function.