OK. You are the one who keeps adding things.
But you fest said:That is almost trivia. The pseudo code is:
open file.
begin loop
read a line
If line starts with 'xxxxxxx' exit loop
write line to output
end loop
close
Is that what you want?
What I wrote was
I have a number of folders each containing a lot of text files. In each file I want to remove lines up to and including a line starting with 'xxxxxxx'.
I did add a post because I forgot the exception condition of the xxxxxxx not being found
I provided a sample and clarification as requested by Hackoo.
I responded Geek_9s suggestion that I write something in Basic.
If its batch file I want to be able specify the input folder, the search string, the output folder and the exceptions folder in a command line, in essence I don't want those things hard coded in the batch file.
So assuming xxxxxx is 'Purpose:" for file shown in the attachment I do not want lines 1 to 15 to be written, the output would consist of lines 16 until the end of file
If the xxxxxx isn't found copy the file to an exceptions folder
And I want it to operate on every .txt file in the input folder.
I appreciate it is not very hard for you, but at 83 I find coding hard.
Thanks PhilD
[attachment deleted by admin to conserve space]