File I/O merging and adding
Ok, I already have file1.txt and file2.txt which are created by me. file3.txt will add a line inputted by the user to the end of file1.txt. file4.txt will merge file3.txt and file2.txt. I have the following portoin which I thought would add a line and create file3.txt but it doesn't. It DOES create file3.txt but writes nothing to it. What I have here is just the first portion of my problem, I believe if I can figure this part out, it shouldnt be that hard to figure out the merging.
(original code delete new one posted)