Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

What is the purpose of open ( ) and close ( ) in os

Open indicates that a file is about to be activated
While close indicates that a file is no longer active 
Comment

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.
Comment

PREVIOUS NEXT
Code Example
Python :: picobot python 
Python :: qlabel click python 
Python :: my name is raghuveer 
Python :: email grabber python 
Python :: make_interp_spline 
Python :: apply numba to itertools import product 
Python :: connect elasticsearch cloud with python terminal 
Python :: apply with sf 
Python :: list loop get previous element 
Python :: The module in NAME could not be imported: django.contrhtmlib.auth.password_validation.UserAttributeSimilarityValidator. Check your AUTH_PASSWORD_VALIDATORS setting. 
Python :: dashbars detect first loop 
Python :: how to get the words inside a entry tkinter python 
Python :: does building wheel for dlib setup py takes forever 
Python :: related name django 
Python :: python3 array 
Python :: Find the minimum item in this RDD 
Python :: Gets an existing SparkSession or, if there is no existing one, creates a new one based on the options set in this builder 
Python :: celery subprocess 
Python :: 57 *2 
Python :: sns.distplot fit 
Python :: install formio data python library 
Python :: pythoneer 
Python :: qt platform plugin could not be initialized stackoverflow 
Python :: discord.File(fp=image_binary,filename=name) discord py 
Python :: python sqlobject declare connection 
Python :: Python colorbar for circular heatmap 
Python :: py2-pip (no such package) required by world py2-pip 
Python :: python read text file to list 
Python :: python array of last n months 
Python :: To install a specific version, type the package name followed by the required version: 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =