Hi ROOTers,
I wrote this header file
#include <iostream.h>
#include <string.h>
#include <fstream.h>
#include "TObject.h"
class ReadFile: public TObject
{
private:
public:
ReadFile();
fstream open_file(char *name_file);
void readf(char *name_file);
ClassDef(ReadFile,1); // Legge file
};
when I wrote
rootcint -f dictreadfile.cc -c ReadFile.h LinkDefReadFile.h
I got
Class ReadFile: Streamer() not declared
Class ReadFile: ShowMembers() not declared
LinkDefReadFile.h is
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class ReadFile+;
#endif
I have to read by a text file. I can use C++ instructions, like
fstream file;
file.open(..)
file.getline(..)
or ROOT instructions?
If I have to use ROOT instructions, which?
I am runing on ROOT 3.02/7
Linux Red Hat 7.1
Cheers.
Giuseppe.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET