Write file in C Plus Plus

A text file is considered to be a file that stores words, number and sentences in readable plain text. In C++, stream class "fstream" can be used for write file operation. "ofstream" is only capable of file write in C++.


Click here for write a file using C++