[ROOT] ifstream and TString::ReadFile()

From: Hadjidakis Cynthia (hadjida@ipno.in2p3.fr)
Date: Thu Aug 22 2002 - 15:57:17 MEST


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