Are you just trying to write some characters to a text file? How come the extraction operator (>>) doesn't work?
Also I'm having trouble understanding what you are saying. All that templated text jazz confused the hell out of me. But are you saying you want to take a c-string like "hello my name is" and have it output "hello my name is" to a text file?
In that case I'd do this:
code: |
char c_string[255] = "hello my name is: ";
std::string cpp_string = c_string;
std::ifstream in("hello.txt");
cpp_string >> in;
|