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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.