Weird stream write output

alkololl meltor at trash-mail.com
Wed Nov 27 16:15:47 PST 2013


On Thursday, 28 November 2013 at 00:05:24 UTC, Luís Marques wrote:
> file.write writes the length of the array, which is what you 
> see:
>
>     Writes a string, together with its length.
>     The format is implementation-specific and should only be 
> used in conjunction with read. Throw WriteException on error.
>
> fix: file.writeString(patch);
>
> (BTW, notice that use of std.stream is not recommended)

Hi

thanks for your answer.
I need to use streams because i need to set the file pointer in 
order to apply a binary edit within an executable.

What would you recommend me, knowing this?

thank you


More information about the Digitalmars-d mailing list