splitting file contents into struct
Hi, its me again :D
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.)
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.num, second 3 into number.num etc....