Re: Reading hexidecimal from a file

2016-09-10 Thread Basile B. via Digitalmars-d-learn
On Saturday, 10 September 2016 at 12:18:22 UTC, Basile B. wrote: On Saturday, 10 September 2016 at 12:12:28 UTC, Basile B. wrote: On Saturday, 10 September 2016 at 12:04:08 UTC, Neurone wrote: Hi, I want to read a text file that contains sha1 hashes in hexidecimal, then convert the hashes bac

Re: Reading hexidecimal from a file

2016-09-10 Thread rikki cattermole via Digitalmars-d-learn
On 11/09/2016 12:18 AM, Basile B. wrote: On Saturday, 10 September 2016 at 12:12:28 UTC, Basile B. wrote: On Saturday, 10 September 2016 at 12:04:08 UTC, Neurone wrote: Hi, I want to read a text file that contains sha1 hashes in hexidecimal, then convert the hashes back into ubyte[20]. Example

Re: Reading hexidecimal from a file

2016-09-10 Thread Basile B. via Digitalmars-d-learn
On Saturday, 10 September 2016 at 12:12:28 UTC, Basile B. wrote: On Saturday, 10 September 2016 at 12:04:08 UTC, Neurone wrote: 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 F1

Re: Reading hexidecimal from a file

2016-09-10 Thread Basile B. via Digitalmars-d-learn
On Saturday, 10 September 2016 at 12:04:08 UTC, Neurone wrote: 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

Reading hexidecimal from a file

2016-09-10 Thread Neurone via Digitalmars-d-learn
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 strin