std.file.read || writefln

Derek Parnell derek at psych.ward
Fri Jun 16 17:55:39 PDT 2006


On Sat, 17 Jun 2006 08:02:49 +1000, MM <MM_member at pathlink.com> wrote:

>
>> Change it to args[1], and it should work.  And update that wiki article
>> while you're at it ;)
>>
>
> Ay sir, I will as soon as you tell me what the best way to read raw data  
> is..
> from the beginning, byte for byte, till end of file :D
>
> (while I'm waiting for my registration email to come to me :)
> and thx

It wasn't the reading that caused the crash but trying to write the raw  
data as if it was char[] (UTF8). You have to treat raw data as ubyte[] or  
byte[] depending on how you will use it.

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d-learn mailing list