Hello All,
It seems simple enough to load data from a file with a "From File" object.
However I am not finding much information on how to read the data back into
a record (of records), for example please notice the following text file:
(schema (numFields 8)
(fieldName "DC0module" (type Record)
(schema (numFields 7)
(fieldName "Name" (type Text) )
(fieldName "nominal" (type Real) )
(fieldName "HighLimit" (type Real) )
(fieldName "LowLimit" (type Real) )
(fieldName "MaxAmps" (type Real) )
(fieldName "Pass" (type Int32) )
(fieldName "description" (type Text) )
)
)
(fieldName "DC1module" (type Record)
(schema (numFields 7)
(fieldName "Name" (type Text) )
(fieldName "nominal" (type Real) )
(fieldName "HighLimit" (type Real) )
(fieldName "LowLimit" (type Real) )
(fieldName "MaxAmps" (type Real) )
(fieldName "Pass" (type Int32) )
(fieldName "description" (type Text) )
)
)
(record ( "DC0module" (record
( "Name" "DC0module")
( "nominal" 5)
( "HighLimit" 5.25)
( "LowLimit" 4.8)
( "MaxAmps" 8)
( "Pass" 1)
( "description" "monitor") )
)
( "DC1module" (record
( "Name" "DC1module")
( "nominal" 5)
( "HighLimit" 5.25)
( "LowLimit" 4.8)
( "MaxAmps" 8)
( "Pass" 1)
( "description" "printer") )
)
)
The first set of two entries define the file and field types.
The second set of two entries are the actual data.
What would I use to identify the type of data and reassemble it back into a
record?
Thank You and Best Regards,
Tom
Thomas R. Melle
Test Engineer
Hardware & Firmware Test
Retail Store Solutions
Internet: trmelle@us.ibm.com