I have to create a program that will read a data file and output the data into a file. The program is not reading the information from the data file. The data file is written in note pad file named inData.txt. Here is the program and the data in the file. Please help me fix this.
Looks like you're outputting to your outfile, and inputting from your infile. If your original statement is true, you want your data to be stored in infile.txt, not outfile.txt.
> The data file is written in note pad file named outData.txt.
¿your _input_ file is called `outData.txt'?
> inFile.open("inData.txt");
you said that you will open `inData.txt'.
Make sure that the name is correct and that the file is in the working directory.