i want to read my file using just c++ instructions
so i ake like that
now i want to get the line but it does not work when i make like thatCode:std::ifstream infile; infile.open ("file.txt", std::ifstream::in);
another thing , i have this program that read the 4 first information (number) from my fileCode:char line[1000]; while (std::istream::getline(line,1000)) {
if in my file thre areCode:std::ifstream stream("file.txt" ); if (stream) { joint ja; pose p; stream >>p.time; stream >> ja; stream >> p; } }
But it just recuperate those informationCode:-0.01 0.03 0.04 -0.5 0.6 0.8 0.3 -0.005 -0.003 -0.008 -0.03 0.05 0.06 -0.005 -0.2 0.3 0.8 1.02 1.03 1.04 .........................
because i do not use getlineCode:-0.01 0.03 0.04 -0.5 0.6



LinkBack URL
About LinkBacks



