not sure about the numbers, but this sounds like the old windows ms-dos mess. for backwards compatability with dos, windows won't read text files past a certain character (which might be Ctrl-Z). most languages let you specify that a file should be opened for binary rather than text reading (which has no effect in unix, but is necessary to avoid this problem on win32). haskell doesn't (afaik) support binary io in the standard (although ghc has appropriate extensions), but maybe there's some parameter you can specify when opening the file? andrew Niels Reyngoud <nreijngo@cs.uu.nl> writes:
We are two students from the University of Utrecht (the Netherlands) working on a project in Haskell. During work on the project, we encountered a problem with the 'readFile' IO Monad. readFile stops reading a file when it encounters ASCII character 26, as the following piece of coding shows. We've tested this with both the Hugs interpreter and the GHC compiler, but both encounter the same problem. Are there any known solutions for this?