// example: C language reads files and prints content /* Example: how to print a file in C language */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <stdbool.h> #include <errno.h> #include <unistd.h> int main() { FILE* fptr = fopen("test.txt","r"); char c = fgetc(fptr); while (c != EOF) { printf ("%c", c); c = fgetc(fptr); } fclose(fptr); return 0; }Soul.www:ecrautturi.com