the output stream to save the file with is selected without dynamic memory allocation