20 PZError<<
"TPZFileStream: File is already opened"<<std::endl;
23 fIn.open(fileName.c_str());
26 PZError<<
"TPZFileStream: Could not open file"<<std::endl;
34 PZError<<
"TPZFileStream: File is already opened"<<std::endl;
40 PZError<<
"TPZFileStream: Could not open file"<<std::endl;
50 return fOut.is_open();
75 for(c=0; c<howMany; c++) fIn >> p[c];
80 PZError <<
"TFileStream:Could not read from stream" << std::endl;
88 for(
int c=0; c<howMany; c++)
fOut << p[c] << std::endl;
91 PZError <<
"TFileStream:Could not write to stream" << std::endl;
void ReadData(T *p, int howMany)
void OpenWrite(const std::string &fileName)
void OpenRead(const std::string &fileName)
#define DebugStop()
Returns a message to user put a breakpoint in.
void WriteData(const T *p, int howMany)
virtual bool AmIOpenForWrite()
virtual bool AmIOpenForRead()
#define PZError
Defines the output device to error messages and the DebugStop() function.