reading binary and text file

binary file:
cpp:
ifstream write
ofstream read

c:
file fread, fwrite


text file
cpp
ifstream >>
ofstream <<

c
write : fprintf
read:  fgets, strtok, strcmp, sscanf

原文地址:https://www.cnblogs.com/cloudseawang/p/1027515.html