#include #include int main() { FILE *f; char *buffer; long size; f = fopen("url", "r"); if( f == NULL ) printf("c'est null\n"); fseek(f, 0, SEEK_END); size = ftell(f); buffer = (char *) malloc(sizeof(char) * size + 1); fgets(buffer, size, f); printf("+%s+\n", buffer); return 0; }