fopen with modes "w" and "r"

how to combine both modes: “w” and “r” for fopen in a program

r+ / w+ ?

http://www.cplusplus.com/reference/cstdio/fopen/

1 Like

Yes! You can use r+ or w+

//