checksum-file ( path checksum -- value )
Factor handbook » Input and output » Checksums

Prev:checksum-lines ( lines checksum -- value )
Next:initialize-checksum-state ( checksum -- checksum-state )


Vocabulary
checksums

Inputs
patha pathname specifier
checksuma checksum specifier


Outputs
valuea byte-array


Word description
Computes the checksum of all data in a file.

Examples
USING: checksums checksums.crc32 prettyprint ; "resource:core/checksums/crc32/crc-me.txt" crc32 checksum-file .
B{ 196 202 117 155 }


Definition