How do I remove certain strings starting from a specific text in a text file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qwerty3210
    New Member
    • Dec 2019
    • 1

    How do I remove certain strings starting from a specific text in a text file

    Hello,
    I am very new to python.
    I have a text file and a python script .
    I am calling the txt file in the script which fetches the data and logs into a csv file.
    Now I want to remove certain data from the text file before logging to csv. how do i do that
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    Set a boolean when the specific text is found, and then if the_boolen, remove certain strings.

    Comment

    Working...