Open the file and a new file. Read the original file line by line. If the line starts with '+', remove the plus and the newline and accumulate it. If the line doesn't start with '+', print any accumulated lines and the current line to the new file.
In reply to Re: Editing text file
by hbm
in thread Editing text file
by freekngeek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |