Zapisz w pliku w C
#include<stdio.h>
int main(){
FILE *out=fopen("name_of_file.txt","w");
fputs("Hello File",out);
fclose(out);
return 0;
}
JJSE
#include<stdio.h>
int main(){
FILE *out=fopen("name_of_file.txt","w");
fputs("Hello File",out);
fclose(out);
return 0;
}
FILE *write_ptr;
write_ptr = fopen("test.bin","wb"); // w for write, b for binary
fwrite(buffer,sizeof(buffer),1,write_ptr); // write 10 bytes from our buffer
#include <stdio.h>
int main(void)
{
FILE *ifp, *ofp;
ifp = fopen(“file1.txt”, “r”);
ofp = fopen(“file2.txt”, “w”);
…