For #2, use the file “ch6_in” in the general section of Canvas (Modules).. The file could include more data with the same format. Use “ch6_out” for output file name.
For #5, do the easy version. Use “oldfile.cpp” for input file name and “newfile.cpp” for output file name.
For #9, use “sample1.txt” for file name.