22 ifstream sfile(fname,std::ios::in);
29 if (first !=
"version"){
31 sfile.seekg(0,std::ios::beg);
37 int sizeX = 0, sizeY = 0;
45 while(sfile>>bucket>>map>>xs>>ys>>xg>>yg>>dist) {
51 while(sfile>>bucket>>map>>sizeX>>sizeY>>xs>>ys>>xg>>yg>>dist){
52 Experiment exp(xs,ys,xg,yg,sizeX,sizeY,bucket,dist,map);
57 printf(
"Invalid version number.\n");
65 ofstream ofile(fname);
68 ofile<<
"version "<<ver<<std::endl;
69 ofile << std::setprecision(8);
71 for (
unsigned int x = 0; x <
experiments.size(); x++)