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

Re: [ProgSoc] Webservers and ASP.Net



On Thu, 2007-09-13 at 10:11 +1000, John Elliot wrote:
> ...but, that's kind of different to a 'web platform'. How is IO 
> achieved, for instance?

Do you mean IO like this?

    [ndvries@eidolon:~] cat io.js
    importPackage(java.io);
    
    try {
      var fWriter = new FileWriter("data.txt");
      var fileBuffer = new BufferedWriter(fWriter);
      print("Writing file...");
      fileBuffer.write("Using LiveConnect\n");
      fileBuffer.close();
    } catch (ioError) {
    }
    [ndvries@eidolon:~] rhino io.js
    Writing file...
    [ndvries@eidolon:~] cat data.txt
    Using LiveConnect


Cheers,

--
Nathan de Vries

Attachment: smime.p7s
Description: S/MIME cryptographic signature