Games: Beginner 3
We start with a file and have to put the first paragraph into one file and the second into another file.
Create a flag (set true). Test for the existence of the output files and delete if present Read the file and loop through. We can identify the paragraph break as there is an empty line – when we get to that we change the value of the flag. If the flag is true add the line to the first file otherwise add to the second file.