[Click] using ifstream in .cc element file
Eddie Kohler
kohler at cs.ucla.edu
Fri Jul 17 19:26:23 EDT 2009
It looks like you didn't say 'using std::ifstream' or some such.
Eddie
Bhurat Prateek wrote:
> CXX ../elements/ethernet/abilene.cc
> ../elements/ethernet/abilene.cc: In member function ‘virtual Packet* Abilene::simple_action(Packet*)’:
> ../elements/ethernet/abilene.cc:50: error: ‘ifstream’ was not declared in this scope
> ../elements/ethernet/abilene.cc:50: error: expected `;' before ‘fin’
> ../elements/ethernet/abilene.cc:51: error: ‘fin’ was not declared in this scope
> ../elements/ethernet/abilene.cc:59: error: ‘fp’ was not declared in this scope
> ../elements/ethernet/abilene.cc:63: error: ‘q’ was not declared in this scope
>
> How can I read and write to a text file from a .cc element file.I tried using ifstream after including the fstream header file.But it doesn't seem to work.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list