Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #172
| From | ruben safir <ruben@mrbrklyn.com> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: reading a temp file in C++ |
| Date | 2011-06-30 03:06 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <iugp8j$i7e$1@reader1.panix.com> (permalink) |
| References | <iuc3l7$nam$1@reader1.panix.com> <iuctn2$h6o$2@dont-email.me> <96uungF471U1@mid.uni-berlin.de> |
On Tue, 28 Jun 2011 21:17:36 +0000, Jens Thoms Toerring wrote: > It may even "delete" (unlink()) the old file, the file descriptor in the > program that invoked vi (or any other editor) using system() > will still be valid - while the original file then has no name in the > file system anymore ot still exists (via its inodes(s)) until nothing > uses it anymore and it only then finally gets removed com- pletely. No - the problem seems to have been that i couldn't open the file with the file descriptor using binary or ios::add mode. It needed to be opened as ios.in and ios.out. Then everything was fine. Ruben
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Find similar
reading a temp file in C++ Ruben Safir <ruben@mrbrklyn.com> - 2011-06-28 08:33 +0000
Re: reading a temp file in C++ Richard Kettlewell <rjk@greenend.org.uk> - 2011-06-28 09:46 +0100
Re: reading a temp file in C++ James Waldby <not@valid.invalid> - 2011-06-28 15:58 +0000
Re: reading a temp file in C++ jt@toerring.de (Jens Thoms Toerring) - 2011-06-28 21:17 +0000
Re: reading a temp file in C++ ruben safir <ruben@mrbrklyn.com> - 2011-06-30 03:06 +0000
csiph-web