\u00a0<\/p>\n
#mastery<\/a>28 #TC<\/a>1017<\/span><\/span><\/p>\n Reading and writing of files in C++<\/span><\/p>\n So far, we have been using the\u00a0iostream\u00a0standard library, which provides\u00a0cin\u00a0and\u00a0coutmethods for reading from standard input and writing to standard output respectively.<\/span><\/p>\n This tutorial will teach you how to read and write from a file. This requires another standard C++ library called\u00a0fstream, which defines three new data types:<\/span><\/p>\n