Re: how can i save a file with RWX access for UGO using ofstream.
- From: "nass" <athanasios.silis@xxxxxxxxx>
- Date: 28 Mar 2007 13:23:00 -0700
On Mar 28, 8:30 pm, SM Ryan <wyrm...@tango-sierra-oscar-foxtrot-
tango.fake.org> wrote:
"nass" <athanasios.si...@xxxxxxxxx> wrote:well using ofstream to make the file and then close, reopen it to get
# hello everyone,
# im loooking into how to save a file that is RW accessible to ALL .
# but i haven't found any reference in ofstream that gives me that
# ability.
If you can get the file designator, you can call fchmod(fd,0777).
In C you can get that from a FILE* with fileno(file). I would guess
C++ has a similar call on its streams, but I don't know what.
an fd, fchmod and close... seems abit of non trivial disk using time..
so.. i was hoping there is some ofstream open() call that i didn't
know of that can actually accept file access flags like the open() fn
in linux.
nass
.
- Follow-Ups:
- References:
- Prev by Date: STREAMS pipes - ioctl I_SENDFD
- Next by Date: Re: how can i save a file with RWX access for UGO using ofstream.
- Previous by thread: Re: how can i save a file with RWX access for UGO using ofstream.
- Next by thread: Re: how can i save a file with RWX access for UGO using ofstream.
- Index(es):
Relevant Pages
|
|