0

Guys can you explain me "w+" , "r+"

8th Feb 2017, 6:01 PM
Osman Hamashool
Osman Hamashool - avatar
2 Answers
+ 2
They both open in read write mode. They both place the cursor and the beginning of the file. However, w+ will delete/overwrite the contents of the file if it already exists and create the file if it doesn't.
8th Feb 2017, 6:15 PM
ChaoticDawg
ChaoticDawg - avatar
0
w stands for write, so it will start rewriting the content you opened, whilst r stands for read, which means it will read the content in the file
8th Feb 2017, 9:18 PM
ramzi
ramzi - avatar