copyFile on Windows dies with binary files
22 Mar
2007
22 Mar
'07
10:52 p.m.
Hi, copyFile on Windows with a binary file doesn't work terribly well - it truncates at the first binary zero. The code goes: copyFile :: FilePath -> FilePath -> IO () copyFile fromFPath toFPath = do readFile fromFPath >>= writeFile toFPath try (copyPermissions fromFPath toFPath) return () That should be openFileBinary etc. Thanks Neil
7078
Age (days ago)
7078
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Mitchell