How to write a program in C++ which creates a file “grade.txt” and stores student’s grade and name.

Using fstream I think?

These things are easily available from the internet, i guess you know about google.Keep the forum for asking things beyond your understanding.Try coding, if there are any issues then ask.