D doesn't read the first character of a file (reads everything but the first chararacter) with either read() or readText()
Sebastien Alaiwan via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jul 18 22:21:52 PDT 2017
On Tuesday, 18 July 2017 at 02:21:59 UTC, Enjoys Math wrote:
>
> DMD32 D Compiler v2.074.1
>
> import std.file;
>
> void main() {
> string bigInput = readText("input.txt");
> }
>
> The file is 7 MB of ascii text, don't know if that matters...
>
> Should I upgrade versions?
Could you please share the first 32-bytes (in hex) of your file?
Like:
$ hexdump -C input.txt
More information about the Digitalmars-d-learn
mailing list