3.1 review c++
//file reading
//open
//read
//close
//how do we define
//use fstream header file for file access
//ifsteam infile
//ofstream outfile
//ifstream -input
//ofstream -output
//fstream -either\
infile.open("inventory.dat")
outfile.open("report.txt")
//lets send data to a file
outfile << "inventory report";
//now we can use object and >> to copy data from file to variables"
infile >> partNum;
infile >> qtyInStock >> qtyOnOrder;
//we have a close member for the end
infile.close()
outfile.close()
#include<iostream>
#include<fstream>
using namespace std;
int main()
outputFile.open("demofile.txt");
cout << Now writing ")
//write four names
outPutFile.
//open
//read
//close
//how do we define
//use fstream header file for file access
//ifsteam infile
//ofstream outfile
//ifstream -input
//ofstream -output
//fstream -either\
infile.open("inventory.dat")
outfile.open("report.txt")
//lets send data to a file
outfile << "inventory report";
//now we can use object and >> to copy data from file to variables"
infile >> partNum;
infile >> qtyInStock >> qtyOnOrder;
//we have a close member for the end
infile.close()
outfile.close()
#include<iostream>
#include<fstream>
using namespace std;
int main()
outputFile.open("demofile.txt");
cout << Now writing ")
//write four names
outPutFile.