Reading a structured binary file?

Dicebot public at dicebot.lv
Fri Aug 2 10:54:05 PDT 2013


On Friday, 2 August 2013 at 17:49:55 UTC, Gary Willoughby wrote:
> What library commands do i use to read from a structured binary 
> file? I want to read the byte stream 1, 2 maybe 4 bytes at a 
> time and cast these to bytes, shorts and ints respectively. I 
> can't seem to find anything like readByte().

http://dlang.org/phobos/std_file.html#.read
http://dlang.org/phobos/std_stdio.html#.File.rawRead

?


More information about the Digitalmars-d-learn mailing list