textfile into structure

can someone please give me an example of inputing from a text file into a structure.

one problem i face is one of the variables inside the structure has to be a vector. that might store any number of values in that vector.

the text file layout is as follows:
the text
342
432
534
123
234
432
the second text
453
324
564
765
the third
546
345
245
876
385

if anyone can help it would be much appreciated
Last edited on
So what I have quoted is what is in the text file?

the text
342
432
534
123
234
432
the second text
453
324
564
765
the third
546
345
245
876
385


You need to be more specific with your question please. I do not understand what you are asking.
I think they mean just sectioning it so that they can determine what part of a file belongs to a certain object or procedure.
sorry if i wasnt clear, i need to input data from a textfile(the above). the text file has to be in that format. then it needs to input that text file data into a structure. but one part of the structure has no limit of the amount of codes it can have

ive learned about the isdigit function while looking around, i think this will help somehow.
the thing is when it reaches a word, its suposed to make that word the next structure.

sorry for not explaining properly
Topic archived. No new replies allowed.