
21 Mar
2006
21 Mar
'06
3:25 p.m.
Koen.Roelandt@mineco.fgov.be wrote:
E.g. An xml file of 12.3k will result in a file of 8k and will stop at 8k An xml file of 15.7k will result in a file of 16k An xml file of 36k will result in a file of 24k
From ghc-6.4, the runtime system no longer flushes open files; it truncates them instead. You should close (or flush) the file explicitly with 'hClose' or 'hFlush' before the program terminates.
Regards, Malcolm