The file input below should match the correct writing mode.