why we need open ( ) and close ( ) in os code example
Example: why we need open ( ) and close ( ) in os
We need to have such functions because it creates a link between
the operating system and the file function since a file needs to be
close 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.