RE: Instant readFile

2000-11-16 Thread Simon Marlow
George Russell writes: The readFile :: FilePath - IO String action returns the contents of the associated file. This is almost what I want, but not quite, because readFile is lazy. Hence if the string is only partly read, the file is still open. What I want instead is a function

Re: Instant readFile

2000-11-16 Thread Marcin 'Qrczak' Kowalczyk
Wed, 15 Nov 2000 18:42:29 +0100, George Russell [EMAIL PROTECTED] pisze: What I want instead is a function which (a) opens the file; (b) slurps the complete contents compactly into an array; (c) closes the file; (d) makes the contents of the array available as a String.