1We need to have such functions because it creates a link between
2the operating system and the file function since a file needs to be
3close after read the file to release the memory allocated by the program and file need to be close to avoid failure in executing the program.