1

I have 14680 text files and after certain String I want to delete all the lines in each text files, how to accomplish this using python

Thanks and Regards

2
  • You read in each file line by line, and once the String matches your input, you stop and save what you have read in so far. Commented Feb 21, 2022 at 10:02
  • I am new to python so it would be help full if I have the code or basic syntax Commented Mar 3, 2022 at 14:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.