I've the need of read a txt file that is structured in this way
0,2,P,B
1,3,K,W
4,6,N,B
etc.
Now I need to read in an array like arr[X][4]
The problem is that I don't know the number of lines inside this file.
In addition I'd need 2 integers and 2 char from it...
I think I can read it with this sample of code
ifstream f("file.txt");
while(f.good()) {
getline(f, bu[a], ',');
}
obviusly this only shows you what I think I can use....but I'm open to any advice
thx in advance and sry for my eng