4 #include "libmesh/libmesh_common.h" 
   18       std::ifstream infile (filename.c_str());
 
   20       if (!infile.is_open())
 
   21         libmesh_error_msg(
"Error opening file " << filename);
 
   25       for (
unsigned int i=0; i != timesteps+1; ++i)
 
   26         infile.getline(buf, 1024);
 
   28         libmesh_error_msg(
"Error reading line from file " << filename);
 
   29       unsigned int length = cast_int<unsigned int>(infile.tellg());
 
   33       int err = truncate(filename.c_str(), length);
 
   35         libmesh_error_msg(
"Error truncating file " << filename);
 
   41       outfile << varname << 
" = [" << std::endl;