The close of the file read/write flow will be better inside a finally block