How to create files..

HELLO EVERYBODY,

I AM A NEW MEMBER,

I NEED A LITTLE HELP,

HOW CAN I WRITE A PROGRAM THAT READS A NAME FROM KEYBOARD AND CREATES
A TEXT FILE OF THAT NAME- NAME.TXT

THANKS
take the input using cin >>
open file using ofstream, write to the file and close the file.

thanks a lot
Topic archived. No new replies allowed.