Re: [ROOT] Reading 25 columns of data...

From: Mike Kordosky (kordosky@mail.hep.utexas.edu)
Date: Thu Jul 15 2004 - 20:51:51 MEST


Hi,

Why not use an ifstream?

ifstream f("yourfile.txt");
float v[25];
while(!f.eof()){
	for(int i=0; i<25; i++) f>>v[i];
	f.get();
}

mike

> 1. fscanf only allows to read up to 12 columns of data line by line. How can I read in up to 25 columns of data?
> 
> 2. I am running the Qt beta ROOT version 4.00.07 for Windows XP and get the following error message when I launch ROOT: "Error: cannot open file "_string" FILE:(tmpfile) LINE:2"
>             "*** Interpreter error recovered ***"
>     Any ideas?
> 
> Thanks.
> 
> Wolf

-- 
Graduate Research Assistant  // High Energy Physics Lab
kordosky@hep.utexas.edu     // University of Texas at Austin
kordosky@fnal.gov	   //
ph: (512) 471-8426 (RLM Lab, Office)
    (512) 475-8673 (ENS Lab)



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET