how to make an object from txt file ?

Farshad Valizade 421 Reputation points
2024-05-20T05:48:17.8233333+00:00

hi

I want to read line by line this kind of file. and make object from each TEXT tag

how can I do that?

file contents:

TEXT
  8
GT_1
 10
748.286
 20
495.939
 40
3.25000
  1
EPPPSP1510AZZ01S8
 41
1.02000
  7
HTX1
  0
TEXT
  8
GT_1
 10
804.000
 20
495.939
 40
3.25000
  1
 0.1M
 41
1.02000
  7
HTX1
  0

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,140 questions
{count} votes