you need to send the user input to a stream to make it readable all you've done at this point is set up the file to be used.... use FileInputStream and pass the user input as the parameter