Wednesday, September 9, 2009

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






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.

No comments:

Post a Comment