怎么按位输出到文件中
例如我想将1010101011100这一串二进制码流输出到文件file.dat中,应该怎么实现求大神
#include <stdio.h> int main() { FILE *FSPOINTER; char STRBUFF[14] = "1010101011100"; //... FSPOINTER = fopen("C:\\Users\\Administrator\\desktop\\file.dat", "w+"); //... fprintf(FSPOINTER, "%s", STRBUFF); //... return 0; }