Write a procedure called reverseFile that accepts the names of two text files. The first should be an existing text file that will be reversed (line by line) to form the second text file. Include reversed line numbers in the output text file. (Hint: you will have to open and close the input file several times).
What is the problem you are having?
Can't seem to get it...This should be simple, but it's really puzzling me. :$
Turing:
proc reverseFile (file1, file2: string)
var stream1, stream2: int var sWord :string var count :int:=0
open: stream1, file1, get open: stream2, file2, put