Re: [ROOT] ifstream and TString::ReadFile()

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 22 2002 - 17:05:49 MEST


Hi Cynthia,

This problem has been fixed a few weeks ago.
Move to the newly available PRO version 3.03/08.
See announcement at http://root.cern.ch

Rene Brun

On Thu, 22 Aug 2002, Hadjidakis Cynthia wrote:

> 
> Hi Rooters,
> 
> We have problems when using TString::ReadFile() with an ifstream as an 
> argument. The macro :
> 
>  TString str;
> 	
>  ifstream oo("file_name.txt");
>  str.Resize(0);
>  str.ReadFile(oo);    
> 
>   oo.Close();
> 
> was working using root/3.01-06,
> 
> the macro craches now using root/3.03-06 and gives :
> 
> Error: Can't call TString::ReadFile(oo) in current scope 
> FILE:e1b_mss_macro.C LINE:332
> Possible candidates are...
> filename       line:size busy function type and name  (in TString)
> (compiled)        0:0    0 public: istream& ReadFile(istream& str); //Read 
> to EOF or null character                                            
> Error: Symbol str is not defined in current scope  
> Error: Failed to evaluate str.ReadFile(oo)Possible candidates 
> are...
> filename       line:size busy function type and name
> *** Interpreter error recovered ***       
> 
> Is it due to any change in the ROOT interpreter ?
> 
> 
> thank you,
> Cynthia
> 
> -- 
> 
> ==========================
>    Cynthia Hadjidakis
>    Groupe PHASE - IPN
>          tel. : 
>    00 33 1 69 15 50 97
>     Bat. 100M M 054
> ==========================
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET