P
Philippe Mesmeur
hello everybody,
I would like my code accepts UNICODE streams.
I've got a component that writes data in an ostream
void MyComponent::write(ostream mystream);
Thus, if I want to write in a file, I give my component and instance of
an ofstream. This ofstream opens a file with its method "open", whose
prototype is the following one:
void open(const char *s, ios_base:penmode mode = ios_base:ut |
ios_base::trunc);
Until here everything is allright...
Now I would like to find a similar stream - usable with the method
"write", i.e. that inherits from "ostream" - that can open a file whose
name is UNICODE (useful if my component is used on a Japanese computer)
Do you know what can I do?
Thanks
Philippe
I would like my code accepts UNICODE streams.
I've got a component that writes data in an ostream
void MyComponent::write(ostream mystream);
Thus, if I want to write in a file, I give my component and instance of
an ofstream. This ofstream opens a file with its method "open", whose
prototype is the following one:
void open(const char *s, ios_base:penmode mode = ios_base:ut |
ios_base::trunc);
Until here everything is allright...
Now I would like to find a similar stream - usable with the method
"write", i.e. that inherits from "ostream" - that can open a file whose
name is UNICODE (useful if my component is used on a Japanese computer)
Do you know what can I do?
Thanks
Philippe