20 #include "TObjString.h"
55 if (!((strcmp(status,
"in")==0) || (strcmp(status,
"out")==0))) {
56 cout<<
"Put the right stream option for file "<<fname
57 <<
"\n writing state : out\n reading state : in \nopen aborted \n";
60 file=
new std::fstream();
61 if(strcmp(status,
"in")==0) {
file->open( fname,
ios::in);};
62 if(strcmp(status,
"out")==0) {
file->open( fname, ios::out);};
63 filebuf* buf =
file->rdbuf();
64 if (
file && (buf->is_open()==1)) {
69 cerr <<
"-E- Could not open input file " << fname << endl;
70 Fatal(
"open",
"Could not open input file");
78 Int_t
pid = gSystem->GetPid();
80 outFileName +=
".par";
81 TString catCommand =
"cat ";
83 TListIter myIter(fnamelist);
84 while((
string = (TObjString*)myIter.Next())) {
86 catCommand +=
string->GetString();
94 gSystem->Exec(catCommand);
96 return open(outFileName, status);
116 cout<<
"Ascii I/O "<<
filename<<
" is open\n";
119 cout<<
"detector I/Os: ";
121 cout<<
" "<<io->GetName();
124 }
else { cout<<
"No file open\n"; }