What are the different file processing modes supported by python?



What are the different file processing modes supported by python?..

Answer / Iqbal Ahmad

Python supports several file processing modes. The most common ones are 'r' for reading (default), 'w' for writing, 'a' for appending, 'x' for exclusive creation, and 'b' for binary mode. To combine these, simply provide multiple letters such as 'r+' for reading and writing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Which of the languages does Python resemble in its class syntax?

1 Answers  


How do you remove duplicates from a list in python whilst preserving order?

1 Answers  


What is a singleton design pattern?

1 Answers  


How do python thread safe?

1 Answers  


What is the use of join() for a string rather than list or tuple method?

1 Answers  


How do I create a python package in pycharm?

1 Answers  


What is the pass statement in python?

1 Answers  


How do you delay time in python?

1 Answers  


How to reverse a string in python

1 Answers  


What is python programming language?

1 Answers  


Explain how to copy an object in Python.

1 Answers  


What is python used for today?

1 Answers  


Categories