O$ - FileOps strangeness...
Kelly Burgess
kellyb at montana.com
Fri Apr 17 19:44:56 EDT 2009
Hi David,
>Do FileOps.$readentirefile(ipath,lbinary) returns lstatus
>
>This works fine on OSX but lstatus returns -47 (open file error) on XP.
I've never used this function on Windows. Its advantage is that on
Mac it collects both data and resource forks of a file - if they both
exist. Even for files that don't contain a resource fork, the binary
returned will still have a 12-byte header containing Mac file type
and creator, and an offset to a potential resource fork, a.k.a. the
size of the data fork following the header.
So on Windows I'd be inclined to use a FileOps object with
$open/$read/$close instead.
Kelly
More information about the omnisdev-en
mailing list