Discuss various modes to open a file.

Question :

Discuss various modes to open a file.

'r' : This mode indicates that file will be open for reading only.
'w' : This mode indicates that file will be open for writing only. If file, does not exists, it will create a new one.
'a' : This mode indicates that the output of that program will be append to the previous output of the file.
'r+' : This mode indicates that file will be open for both reading and writing.


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad