user input defines file stream