zadania_domowe_WDI/zad_dom5/1_1/main.c
2024-12-06 21:30:48 +01:00

19 lines
297 B
C

#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fptr;
fptr = fopen("long_text.txt", "w");
fprintf(fptr, "0123456789");
fptr = freopen("long_text.txt","a",fptr);
for(int i = 0; i < 10000-1; i++)
{
fprintf(fptr, "0123456789");
}
fclose(fptr);
}