Hi!
I want to read a text file from a socket and process it as a String
(using Parsec). Is hGetContent ok, or are there mor efficient
alternatives available, even if I want a String anyway?
Greetings,
Carsten
--
Carsten Schultz (2:38, 33:47), FB Mathematik, FU Berlin
Carsten Schultz writes:
I want to read a text file from a socket and process it as a String
(using Parsec). Is hGetContent ok, or are there mor efficient
alternatives available, even if I want a String anyway?
hGetContents is fine, although you have to be aware that the
function does not
On Mon, Oct 04, 2004 at 08:34:42PM +0200, Peter Simons wrote:
hGetContents is fine, although you have to be aware that the
function does not implement any timeouts. Meaning, if you
don't receive the data you need, your program will hang.
Whether your application is fast or not doesn't