help-gnustep
[Top][All Lists]
Advanced

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

GSFileHandle, initForWritingAtPath, and O_CREAT


From: Dan Hitt
Subject: GSFileHandle, initForWritingAtPath, and O_CREAT
Date: 1 Aug 2003 21:29:45 -0400

Hi All,

I notice that in the initForWritingAtPath: method of GSFileHandle,
O_CREAT is not among the flags passed to open.  So, consequently,
if you try to open a non-existent file with code like
   GSFileHandle * my_handle=[[GSFileHandle alloc] initForWritingAtPath:path];
it won't work.

So, i presume this means that this is not the best way to
deal with opening (and writing to) files?

Thanks in advance for any advice on a better way to open a non-existent
file for writing.

dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]