Simon Marlow wrote:
> hGetLine is strict, in that it keeps reading until a newline or EOF is
> found.  Repeated hGetLine can be used to read the entire file.
> 
> Alternatively you could use IOExts.hGetBuf and friends to slurp the data
> into a buffer and then convert the buffer into a string with one of the
> CString.unpackNBytes family.
> 
> Cheers,
>         Simon

Thanks, hGetLine works, I will use that for now.

  Jan

Reply via email to