Pour Linux
#include <stdio.h> #include <stdlib.h>
int main() { int c; FILE *file; file = fopen("test.txt", "r"); if (file) { while ((c = getc(file)) != -1) putchar(c); fclose(file); } }