I am trying to copy text from one file while creating a new file and transferring the copied text over. Right now, I have created a new output file. However, nothing is getting copied. I don't know if my input file is never read in or my loop is not transferring the words. How do i check and fix this error in my program?
oh i see.. how do really pass my files into my function? without declaring the ifstream and ofstream, my program said infile and outfile were undefined