I am specifically looking for how to use the FILE api.
Thanks!
Christoph
> The extensions I spoke of are in the Stream class near the bottom of
> fs-base.js. It's in fs-base because I was waiting for CommonJS to come
> up with something like this that works with fs-base, but somehow we
> got stalled debating module formats for a year.
>
> The interesting methods ATM are read, readln, write, writeln, and
> close. They work on GPSEE ByteThings, which are a castable binary
> type, and have naive toString methods attached. So they'll work
> pretty much how you'd expect them to.
All I need is toString() some files to get the loader booted.
> These ByteThings can also be cast to either ByteString or ByteArray,
> which are classes from the CommonJS Binary/B specification. GPSEE
> casting works by using ByteThing constructors without the 'new'
> operand; the result uses the same backing store as the input object,
> but interpreted by the methods of the output object.
>
> Hm. I realize this is a lot to throw a you at once. Focus me a bit
> and I'll find you some better information once we're building on Lion.
See: http://groups.google.com/group/gpsee/msg/8d44cae2b3997d22
I am looking to do (1) as soon as GPSEE works on Lion and (2) as soon as
all relevant APIs are available in GPSEE.
(3) Would be great in the next 3 to 6 months but ideally we move on some
of the CommonJS specs in sync.
I also just found: http://www.page.ca/~wes/opensource/gpsee/
Thanks!
Christoph