0

Not sûre i understand the différence between r+ ans w+

14th Jan 2016, 10:20 PM
Yann
1 Answer
0
They both have one thing in common: they both open a file for reading and writing. But w+ has two distinctive characteristics. w+ not only opens a file for read/write, but also ERASES whatever content was in it. AND creates the file if it never existed. Basically making a new file if there isn't a file name that matches whatever you put.
4th Mar 2016, 12:26 AM
Vet