and for some reason when i did fd.ignore('\n', 256) it couldn't read it properly but only when the number is on 10 it reads properly, any suggestions why?
1 2 3 4 5 6 7 8 9
char eil[24];
fd>>n;
for(int i=0; i<n; i++)
{ fd.ignore('\n', 10); // i had the number on 256
fd.get(eil, 24);
a[i].pav= eil;
fd>>a[i].kiek;
}