digitalmars.D.learn - How to Write Raw Bytes to Disk
- "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> (4/4) Feb 10 2015 How do I write a byte[] in raw (unformatted) format to disk?
- "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> (4/8) Feb 10 2015 Oops, I just discovered
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?
Feb 10 2015
On Tuesday, 10 February 2015 at 11:03:06 UTC, Per Nordlöw wrote:
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?
Oops, I just discovered
File("f.raw", "wb").rawWrite(x)
.
Feb 10 2015








"Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com>