how to build Object for List data

2012-10-08 Thread moonhkt
Hi All I have Data call FM01. Each format have F1.. F50 Fields. And Global Program G1..Gn. The format like below as text file FM01 Fld #FieldValidation 1F1 N/A 2F2 N/A 3F3 Program1,1,2,3 # Add F1 and F2 value to F3 4F4

Re: how to build Object for List data

2012-10-08 Thread Laszlo Nagy
Seq validation 1 Program3,1,3,4 # max(F1,F3) to F4 .. n How to using python to Read the text file, Build the data as object class ? Open the file using the open() command. Then iterate over the lines within a stateful algorithm that parses the lines with regular expressions.

Re: how to build Object for List data

2012-10-08 Thread Joel Goldstick
On Mon, Oct 8, 2012 at 2:50 PM, Laszlo Nagy gand...@shopzeus.com wrote: Seq validation 1 Program3,1,3,4 # max(F1,F3) to F4 .. n How to using python to Read the text file, Build the data as object class ? Open the file using the open() command. Then iterate over the lines