Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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.
 
PREVIOUS NEXT
Tagged: #open #close #os
ADD COMMENT
Topic
Name
1+5 =