Escreva no arquivo em 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;
}
#include<stdio.h>
int main(){
FILE *in=fopen("name_of_file.txt","r");
char c;
while((c=fgetc(in))!=EOF)
putchar(c);
fclose(in);
return 0;
}
size_t fread(void *ptr, size_t size_of_elements, size_t number_of_elements, FILE *a_file);
size_t fwrite(const void *ptr, size_t size_of_elements, size_t number_of_elements, FILE *a_file);