hSeek on text files

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Jul 27 07:13:21 EDT 2006

Hello Simon,

Simon, are you remember problem with using hTell+hSeek on handles open
in text (not binary) mode on Windows? afair, you was finished with the
decision to use NoBuffering for text files on Windows?

but this solution is very inefficient. i now thought about dealing
with the same problem in my lib and found that there is another
solution - prohibit using of hTell/hSeek on files open in text mode
(on Unix, too?). i think this is better - one should either open file
in binary mode and use random access or open file in text mode and
read/write it sequentially. what you think about it?

also, i will be glad to hear comments from other haskellers

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

More information about the Libraries mailing list