Hi there, I've been trying to create a model loader and I have somewhat succeeded but I need these 2 tools to succeed. The first one is say I have a file that looks like this: 1. I first find end_header and store it's line # into a variable. Now where I need help is I want basically what i want to do is read all of the information below and put it into a string. So is there a function or a way i could use that'll will read all the information from lines x(11 in this case) all the way to line x(41) in this one). Then my second problem is I want to separate each coordinate:
let's use this line as an example:
1.000000 0.999999 1.000000
I want to split the 1.000000, the 0.999999 and the 1.0000000. What I was thinking of doing was finding a way to read from the first character(1 in this case) all the way till it finds a space a.k.a the end of that coordinate and then after skip 1 character and repeat the previous step.
Thank you for your help it would mean a lot if someone can help me solve these 2 problems