Ask Question
2 December, 14:51

Write statements that declare inFile to be an ifstream variable and outFile to be an ofstream variable.

+1
Answers (1)
  1. 2 December, 17:25
    0
    Following are the statement in the c+ + language

    ifstream inFile; / / declared a variable inFile

    ofstream outFile; / /declared a variable outFile

    Explanation:

    The ifstream and ofstream is the file stream object in the c+ + Programming language. The ifstream file stream object is used for reading the contents from the file whereas the ofstream file stream object is used for writting the contents into the file.

    We can create the variable for the ifstream and ofstream These variable is used for reading and writing into the File. Following are the syntax to create the ifstream variable and ofstream variable

    ifstream variablename;

    ofstream variablename
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write statements that declare inFile to be an ifstream variable and outFile to be an ofstream variable. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers