Computer Science Canada Join two text files with a procedure, reverse a file with another procedure |
Author: | SYZekrom [ Wed Nov 18, 2015 1:03 pm ] | ||
Post subject: | Join two text files with a procedure, reverse a file with another procedure | ||
What is it you are trying to achieve? 5. Write a procedure called appendFile that accepts the names of two text files. These two text files that should be joined to create the new third text file having name FirstFileNameSecondFileNameAppend.txt. Include line numbers in the output text file. 6. Write a procedure called reverseFile that accepts the name of a text file. The file should be an existing text file that will be reversed (line by line) to form the output file. Include reversed line numbers in the output text file. (Hint: you will have to open and close the input file several times). Name the output file FileNameReversed.txt. The only instructions I got, along with structures for the code below. I frankly have no idea what I'm doing. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) It's part of a large program where you can get it to do different things to words or files
I included the full file in case I'm not making sense Please specify what version of Turing you are using Turing 4.0 |
Author: | TokenHerbz [ Mon Nov 23, 2015 1:46 pm ] |
Post subject: | RE:Join two text files with a procedure, reverse a file with another procedure |
it appears the logic is in the comments of the procedures, so which part are you stuck on? |