BufferedFile.write
Tom
tom at nospam.com
Fri Nov 19 21:52:58 PST 2010
Hi,
In D2:
Stream file = new BufferedFile("sample.txt");
file.write("hello");
file.close();
Produces...
src\gie2\main.d(11): Error: function std.stream.Stream.write called with
argument types:
((string))
matches both:
std.stream.Stream.write(const(char)[] s)
and:
std.stream.Stream.write(const(wchar)[] s)
Do I have to do this?
file.write(cast(string)"hello");
Seems ugly.
KR
T;
More information about the Digitalmars-d-learn
mailing list