I need help with this program data from text fileStock.txt and then print out and write out in file StockOutput.txt.I need to read the txt fie and I need to use the following in theproject.
Stck.txt file contains the following
INTC 30 39.50 50
I need include the following in the file
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
int main()
{
//variables
//to read from an input file we need ifstreamvariable
ifstream inFile;
ofstream outFile;
// i need to use the following to open thefile
//open the file and read
inFile.open(“Stock.txt”);
inFile >> stkname; etc
//I need to use these to open output file and output tofile
outFile.open(“StockOutput.txt”);
outFile
OR
OR