What is difference between file opening mode r+ and w+?

Answer: 

Both r+ and w+ we can read ,write on file but r+ does not truncate  (delete) the content of file  as well it doesn’t create a new file if such file doesn’t exits while in w+ truncate the content of file as well as create a new file if such file doesn’t exists.

7 comments:

Anonymous said...

Nice Answer...
Thank You !!

Imran said...

Thank u, it waz helpful.

Anonymous said...

It's realy helpfull

Anonymous said...

good answer

Anonymous said...

good answer

Anonymous said...

good answer!!!!!!
its very help full;
Thank uuuuuu.................

Anonymous said...

Thanks