How do I print double quotes?

Quick question on use of "ofstream." I'm trying to use ofstream to output some text to a file. The problem is that the text I want to output contains double quotes (the " character), but C++ syntax requires me to enclose the text in double quotes. Is there any way around this?

Thanks.
Use an escape sequence:

cout << "Say \"hello\" to the nice people!\n";

:-)
Thanks!
Topic archived. No new replies allowed.