Distributed under the LGPL
*/
-#include <fstream>
#include <iostream>
#include <set>
#include <msp/core/except.h>
#include <msp/core/getopt.h>
#include <msp/datafile/parser.h>
+#include <msp/io/buffered.h>
+#include <msp/io/file.h>
#include <msp/path/utils.h>
#include <msp/strings/formatter.h>
#include <msp/strings/regex.h>
*/
int Builder::load_build_file(const Path &fn)
{
- ifstream in(fn.str().c_str());
- if(!in)
- return -1;
+ IO::File inf(fn.str());
+ IO::Buffered in(inf);
if(verbose>=3)
cout<<"Reading "<<fn<<'\n';