I\'m trying to read a return delimited file. full of phrases.
I\'m trying to put each phrase into a string.
The problem is that when I try to read the file w
fscanf(file,"%50[^\n]\n",string);
Every character except \n will be consumed by [^\n]
\n
[^\n]
Maximum 0f 50 chars will be consumed (make sure string has space for 51 atleast)
..\n",string this makes sure that \n is also consumed so that the next call does not just return a null string.
..
",string