|
-
Sep 4th, 2009, 03:36 PM
#1
Thread Starter
Lively Member
Complex: Text File to Array and Get Min/Max Values
Hi All,
Would like to kindly see if there are suggestions on how to best open and read a text file in the following example format to extract the following information:
Max X Value
Min X Value
Max Y Value
Min Y Value
File Format Example is as follows: each file would have 10-100+ entries
[Header]
FunctionPlot=Parametric
X=85
Y=-340
Rotation=90
File=
X1=9211
Y2=2000
Param0=10
Param1=20
[Header]
FunctionPlot=Parametric
X=-122
Y=120
Rotation=180
File=
X1=20000
Y2=10000
Param0=10
Param1=20
I am currently experimenting with using an array to maintain performance and splitting into individual lines, and it's coming along but slowly. Was wondering if there are other code suggestions or ideas on how to best get these values that I may be overlooking...thanks for any insight!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|