home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!not-for-mail
- From: wanling@swl.spec.ptg.sony.co.jp (Quak Wan Ling)
- Newsgroups: comp.lang.c++
- Subject: 0-mode file created with ofstream
- Date: 5 Jan 1993 19:32:12 -0600
- Organization: UTexas Mail-to-News Gateway
- Lines: 21
- Sender: daemon@cs.utexas.edu
- Message-ID: <9301060130.AA01788@garfield.swl.spec.ptg.sony.co.jp>
- NNTP-Posting-Host: cs.utexas.edu
-
- I am new to C++ programming and was trying out the filecopy program
- in the "The C++ Programming Language, 2nd edition" on a SGI running
- AT&T C++ 2.0.
-
- When I copy a file to a *non-existing* file, the new file that is
- created has mode 0. It is the same when I specify
-
- ofstream dest(argv[2], ios::app);
-
- If the destination file already exists, then I do not have any problems.
-
- Can anyone please tell me how to create a new file with, say, for example,
- mode 644 ?
-
- Thanks in advance.
-
- ------------------
- Quak Wan Ling
- wanling@swl.spec.ptg.sony.co.jp
- ------------------
-
-