does anyone know any easy way of reading in a file line by line.
im assuming i need to use ifstream
then just do while (!file.eof()) getline(file, string);
i need to read each string into a switch statement and then extract 3 values: vertex.x vertex.y vertex.z for each string read in depending on the case statements. can anyone shed some light? ill supply code if it helps
rborob
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.