Reading hexidecimal from a file

Neurone via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 10 05:04:08 PDT 2016


Hi,

I want to read a text file that contains sha1 hashes in 
hexidecimal, then convert the hashes back into ubyte[20]. 
Examples of some lines:
E9785DC5  D43B5F67  F1B7D1CB  33279B7C  284E2593
04150E8F  1840BCA2  972BE1C5  2DE81039  0C486F9C

How can I do this? The documentation for format strings is pretty 
dense, so couldn't understand most of it.


More information about the Digitalmars-d-learn mailing list