[Haskell] [Haskell - I/O] Problem with 'readFile'

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun Aug 27 10:28:03 EDT 2006


Hello John,

Sunday, August 27, 2006, 5:45:21 PM, you wrote:
>> return $! tail mates_str

> But you need to evaluate the result of readFile all the way to the end--you
> need to use a function that traverses the entire file contents. Otherwise
> the file will be left open to read the bit you haven't traversed. Hence
> length rather than tail.

oh, sorry, i mean 'last'



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell mailing list