Exporting data to Notepad

Can you show me a tutorial to export data used on a program of C++ to a Notepad/Excel or explain me what to do :)
Output the data to a .txt file for notepad. There's nothing special you need to do in that case.

You could do the same for excel, but it is useful to separate each field (column) with a character such as comma or tab.

See ofstream:
http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.