file.write(mystr.length);file.write(mystr); // should automatically write out all the bytes of the string
You could just write the string length then the data to the file
using the .length and index things on string.
- Re: String to binar... Vladimir Panteleev via Digitalmars-d
- Re: String to binary co... Gary Willoughby via Digitalmars-d
- Re: String to binar... Ali Çehreli via Digitalmars-d
- Re: String to ... Philippe Sigaud via Digitalmars-d
- Re: String to ... HeiHon via Digitalmars-d
- Re: String... monarch_dodra via Digitalmars-d
- Re: String to ... Nick Sabalausky via Digitalmars-d
- Re: String to ... Vladimir Panteleev via Digitalmars-d
- Re: String... Ali Çehreli via Digitalmars-d
- Re: String... Andrei Alexandrescu via Digitalmars-d
- Re: String to binary conversion Adam D. Ruppe via Digitalmars-d
- Re: String to binary conversion clearion via Digitalmars-d
- Re: String to binary conversion Colin via Digitalmars-d
