how to combine both modes: “w” and “r” for fopen in a program
r+ / w+ ?
http://www.cplusplus.com/reference/cstdio/fopen/
Yes! You can use r+ or w+