Message: Re: How to output position of primaries to .txt file at each step Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to output position of primaries to .txt file at each step 

Forum: Analysis
Re: Question How to output position of primaries to .txt file at each step (Nathan)
Date: 03 Aug, 2010
From: John Allison <John Allison>

Move "std::ofstream out( "textfile.txt");" outside the function (to "global scope"). Forget "close" (the system will close it when the program ends).

Not very elegant, but it should work.

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

1 Ok: Re: How to output position of primaries to .txt file at each step   (Nathan - 03 Aug, 2010)
 Add Message Add Message
to: "Re: How to output position of primaries to .txt file at each step"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]