February 10, 2015 How to Write Raw Bytes to Disk | ||||
---|---|---|---|---|
| ||||
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? |
February 10, 2015 Re: How to Write Raw Bytes to Disk | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | 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)
.
|
Copyright © 1999-2021 by the D Language Foundation