ascii :md4-file ( string $FILENAME , bool $RAW )
ascii :md4-file ( string $FILENAME )
Returns the MD4 checksum of given file.
If RAW is provided and true, result will be raw binary data; otherwise, a hex-encoded representation is returned.
Note that, if the file is not found (or cannot be read), the returned value will match the hash of an empty string.
# :md4-file example. !if :gt i2 :param-cnt :writeln s'Usage: md4chk file sum' :exit !fi :hex-case s'lower' !if :eq (:param-str i1|:md4-file :param-str i1) :writeln s'File matches the checksum.' !else :writeln s"Oh noes, the file doesn't match the checksum!" !fi
wikipage modified on 2014/0601/2317