Re: [ROOT] Tstring

From: Rudi Lutter (Rudi.Lutter@Physik.uni-muenchen.de)
Date: Tue Nov 19 2002 - 12:20:38 MET


Hi Guiseppe,

try

	ifstream f;
	TString str;
	f.open("xyz.dat", ios::in);
	if (f.good()) {
	     while(!f.eof()) {
                       str.ReadLine(f, kFALSE);
                       ......
                   }
	     f.close();
              }

This peace of code will read file xyz.dat to TString str, line by line.

Rudi



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