I am reading a file in a loop, the following line reads from the file
Here is a bit of the file it reads which has a problem.Code:char var1; int rn; //etc...... rn=fscanf(textfile,"%[^\n]\n",var1);
It reads each line into var1 as expected however it does not read
the line which starts with a space eg " Game #7533141350 starts. "
It completely loses it and carries on OK as if he line never existed.
Why is this? I think I have came across this before but forget how I
fixed it. As it happens it's not a problem as that line is not important
for what I am doing but I would like to know what I am doing wrong
and how to fix it!!
Code:GT_champ shows [ 5c, Ac ]two pairs, Fives and Twos. GT_champ wins $0.14 USD from the main pot with two pairs, Fives and Twos. Game #7533141350 starts. #Game No : 7533141350 ***** Hand History for Game 7533141350 *****