FILE *fout = fopen("filename", "r"); fwrite(buf, sizeof(char)*num_elem, 1, fout); fclose(fout);. 如果是要寫入非字符的數據,例如float數組、int ...
確定! 回上一頁