On Wed, 2004-10-27 at 12:03, Fabrice Esti�venart wrote:
> var inputStream =
> Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
>
> var line;
> while(inputStream.readLine(line)){
> alert(line);
> }
I think the problem is that you need to query it for a line input
stream... the following code should work...
inputstream.QueryInterface(Components.interfaces.nsILineInputStream);
while (inputstream.readLine(line)) {
alert (line.value);
}
saludos!! santiago.
netlabs
Palmar 2548
Montevideo, Uruguay
+(598 2) 707-7687
[EMAIL PROTECTED]
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom