TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Mark Wuest 74030,332 (X)
from: Bob van der Poel 76510,2203
date: 1991-05-13 22:04:21
subject: #10665-creat() help

#: 10669 S12/OS9/68000 (OSK)
    13-May-91  22:04:21
Sb: #10665-creat() help
Fm: Bob van der Poel 76510,2203
To: Mark Wuest 74030,332 (X)


Yes, access() is the correct way to see if a file exists. In the segment I was
working with I really didn't care if the file did or did not exist. I was going
to overwrite it no matter what. Creat() is nice for this since it will
overwrite an existing file. Create() will not. But with creat() you can't set
the file permissions (as we both now know!!), and I did want some special perms
set . . . so that meant I had to use create(); but it fails if the file
exists... so then it is back to combinatation of create() and open(). No big
deal, but it seemed that creat() would have been so simple. Besides, now
everyone knows of yet another ambiguity in the MW manuals.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.