You will have to read the entire file, line by line checking to see if there is a line after the one that has been read. If there is, write this line to another file and go on and read the next line and check again. If there is not, write out you extra line and then write out the last read in line.
Do you need sample code for this??
Simon