How to Write Raw Bytes to Disk

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 10 03:03:04 PST 2015


How do I write a byte[] in raw (unformatted) format to disk?

     File("f.raw", "wb").write(x)

doesn't seem to do it.

Why isn't the "wb" interpreted as raw bytes?


More information about the Digitalmars-d-learn mailing list