[Gambas-user] Strings and Network input ...

Benoit Minisini gambas at ...1...
Sat May 12 14:00:32 CEST 2007


On jeudi 10 mai 2007, Gareth Bult wrote:
> Urm,
>
> One (easy) answer would be to have a flag that's set if the LINE INPUT
> returns with a complete line. If last (n) characters == EndOfLine then
> Complete = TRUE, else Complete = FALSE.
>
> This was my solution, I've subclassed the socket (imapdsocket) and written
> my own line input routine that does this. (albeit it may be a bottleneck
> written in Gambas as opposed to C)
>
> Gareth.
>

I added a EndOfFile property in the Stream class that tells you if LINE INPUT 
has reached the end of file (EndOfFile = TRUE) or has read an end of line 
(EndOfFile = FALSE).

If you could try it...

Regards,

-- 
Benoit Minisini




More information about the User mailing list