#include #include int main() { std::ifstream a_file("testdata.dat", std::ifstream::in); float var = 0.0; float x[8192], y[8192]; int length; length=0; while(a_file.eof() == false) { a_file >> x[length]; a_file >> y[length]; //should skip white spaces and store number; length++; } length--; for ( int i=0; i