¿ªÔÆÌåÓý

gcc fopen question


 

I am trying to open a file using fopen:
fopen("tmp.dat","r+")

I need to open it for read & write.? However the compiler
complains with an error stating invalid option? "r+".
Can you on vm370 gcc open a file for both read and write?

Thank You
Tom c

Join [email protected] to automatically receive all group messages.