j
k
j a
j l
Bulat Ziganshin writes:
import System.IO import Data.Char main = do h <- openBinaryFile "test" WriteMode hPutChar h (chr 255) hPutChar h 'a' -- never executed
In the underlying C API, (char)255 == (char)-1 == EOF. Regards, Malcolm
Back to the thread
Back to the list