Closing file write stream and file append stream after the completion of writing in the file.