My program is suppose to read an input file and print it contents which it does and then it is suppose to adjust it and create a new file that contains the adjustments.The new file is created properly and has the correct contents but when I try print the contents only the headers show up. Any feedback would be helpful. There are other functions but I believe they aren't causing the problem. We aren't allowed to adjust the main, only the other functions.
void PrintFileContents(std::ifstream &str)
// Print the contents of the file
// First, print the file headers
// Then, print each line.
// Make sure the text is properly formatted
// Remember the functions available in iomanip?
// Name Savings Credit
// Bob $23.56 $0.00
// Joe $43.52 $0.00
// Sally -$1.58 $0.00