
24 May
2007
24 May
'07
7:24 a.m.
Sorry for not familiar to the email client. My system is WinXP, and using GHC 6.6. And is read from file. Data is truncated at the ^Z char. I just wrote one simple test code.
import IO
writeTest fn = do h <- openFile fn WriteMode mapM_ (\p -> hPutChar h (toEnum p::Char)) $ [0..255] ++ [0..255] hClose h
accessTest fn = do h <- openFile fn ReadMode s <- hGetContents h putStrLn . show . map fromEnum $ s hClose h
main = do writeTest "ttt" accessTest "ttt"