Oh, much better, thanks.
Am Donnerstag 22 April 2010 02:09:35 schrieb Renato dos Santos Leal:
> I've seen that there is something like hIsEOF that I can use to find EOFNo, that's not what you want.
>
> to do so I need something like eof <- hIsEOF hdl
> (hdl: the file that i'm reading)
>
> how can I put it as a guard in le_bloco?
What you need is
le_bloco (x:xs) ... (what you have)
le_bloco "" = return ()
-- when the end of the string is reached, we're done.