I want to read a text file with C. This is my simple ilustration code : FILE *offsetFile=NULL; char *buffer; int cbyte; cbyte = 100; buffer = (char*) calloc (cbyte, sizeof(char)); offsetFile = fopen("listOffset.txt", "r"); if (offsetFile==NULL) { exit(0); } fgets (buffer, cbyte, offsetFile); When I compile this code I get warning message : ignoring