ok this is gonna sound extremely dumb, but i have to ask. I have a binary data file and i want to open it to read it into my program using the fopen() function. Now its been a while since i used C, but i as i remember it the way to do this would be to put the following statement in to my code
where c:\test.bin is the address of the file i want to open. Yet when i compile my code i get this errorsCode:fp=fopen("c:\test.bin", rb);
error C2065 : 'wb' : undeclared identifier
error C4047: 'function' : 'const char*' differs in levels of direction from 'int'
Can anybody give me any ideas what the problem is?
Thanks in advance