[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] SYSOPEN



Jeremy Lee writes:
|>use Fcntl;
|>sysopen F, "Macintosh HD:Desktop Folder:f1", O_RDWR | O_CREAT, 0666 or
|>	die "can't sysopen: $!\n";
|What are 
|     O_RDWR | O_CREAT

They symbolically specify the mode the file is to be opened in. In this
case, O_RDWR means to open the file for reading and writing, and O_CREAT
says to create the file if it doesn't exist.

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch