ProAnswers.org

binary file operations in C?

how to write into file in binary format in C?

1 Like

FILE *fp = fopen(“myfile”, “rb”);

in “rb”, “r” is for read mode and “b” is for binary mode.