Article View: comp.std.c++
Article #3620tellp and seekp on ofstream in separate runs?
From: Axel Thimm
Date: Fri, 08 Mar 1996 16:22
Date: Fri, 08 Mar 1996 16:22
28 lines
1911 bytes
1911 bytes
Hello,
I'd like to store a "filepointer position" to be able to find the same
writing position in a subsequent run. (I am doing some simulation
writing lots of numbers out. Saving the state of some internal vars with
the filepointers would make me able to restart the program from that
information and file position, if needed).
I hope that I can do this with the tellp and seekp methods of ofstream.
Tha draft (april 95) is not making a firm statement, that this should be
possible between subsequent runs. (After all there are other stream
types that loose they validity when the program finishes.)
I haven't checked out the latest draft, is there a clarification about
this?
Or is there another proposed way to accomplish the explained task
remaining within the standard?
I'd like to thank you in advance for any comments upon this.
Axel Thimm.
===
Axel Thimm <axl@zedat.fu-berlin.de>
Freie Universitaet Berlin
===
---
[ To submit articles: try just posting with your news-reader.
If that fails, use mailto:std-c++@ncar.ucar.edu
FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu.
]
Technical Details
Message-ID:
<4hpmgl$ejt@fu-berlin.de>Path:
arc1-ca.pugleaf.net!in2.uu.net!bounce-backShow Full Headers
Complete Article Headers
From: axl@zedat.fu-berlin.de (Axel Thimm) Message-ID: <4hpmgl$ejt@fu-berlin.de> X-Original-Date: Fri, 08 Mar 1996 16:16:40 GMT Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back Date: 08 Mar 96 16:22:36 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ Subject: tellp and seekp on ofstream in separate runs? Organization: FU Berlin, Fachbereich Physik, Institut fuer Theoretische Physik Reply-To: axl@zedat.fu-berlin.de X-Access: 16 17 19 X-Newsreader: Forte Free Agent 1.0.82 X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMUBe1+EDnX0m9pzZAQEPfwF/Q1n6Xf6lS4sTcZoMf+NDQMNPPtDGzVP0 xHHcqjIPyiG3NOYtBUeFZC6mUClhkj3e =tXjM