Python Forum
modify line in file if pattern found in list.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
modify line in file if pattern found in list.
#2
Dedent line 41-42 to align the 'else' with the 'for'.
Reply


Messages In This Thread
RE: modify line in file if pattern found in list. - by Gribouillis - Dec-10-2018, 08:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Absolute paths in subprocess - file not found kittyticker 4 500 Jan-28-2024, 10:37 PM
Last Post: kittyticker
  file open "file not found error" shanoger 8 1,156 Dec-14-2023, 08:03 AM
Last Post: shanoger
  File "<string>", line 19, in <module> error is related to what? Frankduc 9 12,588 Mar-09-2023, 07:22 AM
Last Post: LocklearSusan
  Read text file, modify it then write back Pavel_47 5 1,632 Feb-18-2023, 02:49 PM
Last Post: deanhystad
  Getting last line of each line occurrence in a file tester_V 1 877 Jan-31-2023, 09:29 PM
Last Post: deanhystad
  Writing string to file results in one character per line RB76SFJPsJJDu3bMnwYM 4 1,387 Sep-27-2022, 01:38 PM
Last Post: buran
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,232 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  Split string using variable found in a list japo85 2 1,308 Jul-11-2022, 08:52 AM
Last Post: japo85
  File not found error saisankalpj 10 3,873 Jul-04-2022, 07:57 AM
Last Post: saisankalpj
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,696 Apr-13-2022, 06:02 AM
Last Post: Paqqno

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020