sir in read and write mode(‘r+’), for existing file data will be truncated or not?
Regarding read and write('r+')
r+ opens for reading and writing (no truncating, file pointer at the beginning)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
but if the handle is at the beginning of the file and we write something in the file in “r+” then the data at the beginning will get truncated na?