Hi, its me again
sry about all the questions lately...
I have saved a file with a string of digits. I wish to split this string into sections of 3 digits and load each set of 3 into a field of a struct...
ill try to explain some more:
file contains this: (just an example could contain any amount of digits but it would always be able to split into exact "chunks" of 3.)
152142138
how would I go about reading those digits from the file in groups of 3? (im using fstream for file access).
I want to load the first 3 into number[0].num, second 3 into number[1].num etc....Code:struct nums { int num; }; nums number[10];
any ideas?