Message: Re: output file using ostream Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: output file using ostream 

Forum: Processes Involving Optical Photons
Re: Question output file using ostream (Lilia Drakopoulou)
Re: Ok Re: output file using ostream (Lilia Drakopoulou)
Date: 11 Jul, 2014
From: Pierre <Pierre>

Hi,

I have the same problem as you. I want to create an output file but I dont know exactly how to write the following lines,

        ostream logFile;
        logFile.open("MyLogFile");
        G4int MySession::ReceiveG4cout(const G4String& coutString)
        {
          logFile << coutString << flush;
          return 0;
        }

as it explained in the manual : https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch07s02.html#sect.UIDefNew.HowCont

Thank you for your help,

Pierre

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: output file using ostream   (Gumplinger Peter - 15 Jul, 2014)
 Add Message Add Message
to: "Re: output file using ostream"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews