notes/sandbox/fputc.c
2023-04-22 00:41:54 -07:00

15 lines
228 B
C

#include <stdio.h>
int main(void)
{
FILE * fp = fopen("hallo.txt", "w");
fputc('A', fp);
/* getchar(); */
fputc('A', fp);
/* getchar(); */
return 0;
}
// creates file hallo.txt and writes "AA" to it.