On Fri, Nov 09, 2007 at 09:05:58PM +0000, Andrew Coppin wrote:
> The MD5SUM.EXE file I have chokes if you ask it to hash a file in another 
> directory. It will hash from stdin, or from a file in the current 
> directory, but point-blank refuses to hash anything else. So I'd have to 
> write my Haskell code to open the file I want and *pipe* it to stdin on 
> MD5SUM.EXE (making sure to not translate line ends or anything else that 
> will alter the hash code). Then I have to parse the output and change it to 
> actually match the UNIX md5sum program. [Because I want to make it 
> compatible with that.] That also involves some fun with line ends...

I'm drawing a blank on the windows API, but at least in DOS it was
possible to redirect standard input from a file without involving your
program.

Stefan

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to