Re: [Haskell-cafe] hFileSize vs length

2005-03-12 Thread Gracjan Polak
S. Alexander Jacobson wrote: I am using GHC 6.2 on windows and am finding that when I open a file and use hFileSize I get a different number than I get from reading in the file and calculating the length. I assume this is not a bug, but I don't know why its happening. Isn't that because of

[Haskell-cafe] hFileSize vs length

2005-03-11 Thread S. Alexander Jacobson
I am using GHC 6.2 on windows and am finding that when I open a file and use hFileSize I get a different number than I get from reading in the file and calculating the length. I assume this is not a bug, but I don't know why its happening. Also, why isn't there getFileSize function in