Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!vladimir From: vladimir@prosper.EBB.Eng.Sun.COM (Vladimir G. Ivanovic) Newsgroups: comp.sys.mac.programmer Subject: stdio, THINK C and APPLs Message-ID: Date: 24 Dec 90 06:45:39 GMT Sender: news@exodus.Eng.Sun.COM Organization: Sun Microsystems, Inc. Lines: 21 As far as I can tell, THINK C's implementation of stdio will not read anything from a file of type APPL. I've tried opening an application with both fopen() with "r" and "rb", and with open() with O_BINARY (the default) without success. No errors are returned by any call, just 0 bytes are read. Is my assumption that since there is no data fork, stdio thinks it's has a zero length file correct? Or am I doing something wrong? Does that mean I have to use Toolbox calls to copy an application? If the data fork assumption is correct, is this The Way It Should Be? How does MPW C behave? -- Vladimir, the Puzzled. -- ============================================================================== Vladimir G. Ivanovic Sun Microsystems, Inc (415) 336-2315 2550 Garcia Ave., MTV12-33 vladimir@Sun.COM Mountain View, CA 94043-1100 Disclaimer: I speak only for myself. Your mileage will vary. ==============================================================================