Subj : File.readln() not returning string occasionally
To   : Nightfox
From : Digital Man
Date : Mon Aug 17 2009 12:44 am

 Re: File.readln() not returning string occasionally
 By: Nightfox to All on Sun Aug 16 2009 08:42 pm

> Hi all -
>
> The Synchronet JavaScript docs say that File's readln() function returns a
> string.  I've run into a situation where it seems to return something
> different occasionally.  I was using readln() to read lines from a file,
> and there were some blank lines at the end.  When it gets to the last line,
> the thing returned by readln() seems to be of type "object" rather than
> "string" (I know this because I was using typeof() to test what was
> returned).  Is it supposed to do that, or might it be a bug?

File.readln() returns undefined when end of file is reached.

                                           digital man

Snapple "Real Fact" #8:
A bee has 5 eyes.

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net