Re: 80 characters per line limit in TGraphErrors

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 10 Nov 2005 15:51:13 +0100 (MET)


Hi Alexandr,

Thanks for this suggestion. Now implemented in CVS.

Rene Brun

On Thu, 10 Nov 2005,
Alexandr Malusek wrote:

> Hi,
>
> The function
>
> TGraphErrors(const char *filename, const char *format, Option_t *)
>
> has a limit of 80 characters per line:
>
> char line[80];
> while (fgets(line,80,fp)) {
> ...
>
> I hit this limit by reading a simple table with 7 columns only (3
> curves). I suggest this routine is implemented as the corresponding
> routine in TGraph which uses
>
> std::string line;
> while(std::getline(infile,line,'\n')){
> ...
>
> In my case, several characters at line ends were ignored (namely
> "e-03"). It resulted in errors which were several orders of magnitude
> larger.
>
> Regards,
> Alexandr
>
Received on Thu Nov 10 2005 - 15:51:21 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET