Important Notice:

Course Content
File Processing in Python (Chapter-11) M3-R5
About Lesson

Binary File:-

        Binary file को open करने के लिए निम्नलिखित mode हैं-

i. wb(write binary):-

        file को binary format में writing के लिए open किया जाता है  अगर file exist होती है तो उसे overwrite किया जाता है और अगर file exist नहीं होती है तो new file create की जाती है

ii. rb(read binary):-

             file को binary format में reading के लिए open किया जाता है  ये file के beginning पर होता है

iii. ab(append binary):-

              file को binary format में appending के लिए open किया जाता है अगर file पहले से ही exist होती है तो बिना data remove किये वो end पर पहुँच जाता है और अगर file exist नहीं होती है तो new file create की जाती है

 

 

Binary File:-

        There are following modes to open binary file-

i. wb(write binary):-

             The file is opened for writing in binary format. If the file exists then it is overwritten and if the file does not exist then a new file is created.

ii. rb(read binary):-

              The file is opened for reading in binary format. This happens at the beginning of the file.

iii. ab(append binary):-

                   The file is opened for appending in binary format. If the file already exists then it reaches the end without removing the data and if the file does not exist then a new file is created.

error: Content is protected !!