Python Forum
Parsing Text file having repeated value key pair using python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parsing Text file having repeated value key pair using python
#3
(Aug-04-2018, 07:36 PM)buran Wrote: loop over file line by line
when the line is An instance of Alert - that's new alert
read following lines, split at = and you have key/value pair
Do you have an example pls
Reply


Messages In This Thread
RE: Parsing Text file having repeated value key pair using python - by manussnair - Aug-04-2018, 07:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Text parsing Arik 5 498 Mar-11-2024, 03:30 PM
Last Post: Gribouillis
  Replace a text/word in docx file using Python Devan 4 3,811 Oct-17-2023, 06:03 PM
Last Post: Devan
  save values permanently in python (perhaps not in a text file)? flash77 8 1,320 Jul-07-2023, 05:44 PM
Last Post: flash77
Video doing data treatment on a file import-parsing a variable EmBeck87 15 3,045 Apr-17-2023, 06:54 PM
Last Post: EmBeck87
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,173 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,761 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  Parsing xml file deletes whitespaces. How to avoid it? Paqqno 0 1,071 Apr-01-2022, 10:20 PM
Last Post: Paqqno
  Converted Pipe Delimited text file to CSV file atomxkai 4 7,125 Feb-11-2022, 12:38 AM
Last Post: atomxkai
  Getting the maximum value:key pair from a dictionary sean1 2 1,481 Jan-17-2022, 01:04 PM
Last Post: DeaD_EyE
  Parsing a syslog file ebolisa 11 4,283 Oct-10-2021, 05:15 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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