supposing i have a text file with this content :
this is the first line .
this is the second line .
this is the third line .
my point is to get every line in a separate string variable .
i tried something like this
do { fgets(ch,1000,f);printf("%s \n",ch); } while(strlen(ch)!=0);
whith "f" is a pointer to my file and ch my string variable .