loading a file as argument

Eddie Kohler kohler at icir.org
Tue Feb 25 11:39:22 EST 2003


> in something.hh I add this line:
> String _filename;
> and in something.cc I use this:
> ifstream f(_filename)

Perhaps _filename is not getting converted to the right type. Try

ifstream f(_filename.c_str());

E




More information about the click mailing list