writing into a file

I want to write a program in cpp which will create a file and write some classes into it so that whenever i will execute that program i will have the auto generated file.any ideas how to do it

Regards,
Sasidhar.
Topic archived. No new replies allowed.