Hi,
I have a text file and I looking for a way to delete all the end of the file, meaning delete a portion from a token I can provide until the end of the file.
For Example, if my file is:
Today is Sunday
Tomorrow is Monday
delete from here
the hour is XXXX
goodbye.
and I want to delete all the lines from:delete from here including delete from here(which I always know that exist)
Does anyone knows on a good way to do it?
Thanks
