Listbox - Retrieving Data from .txt

Greywolfz
01-09-2006, 06:09 PM
Hello, I would first like to apologize for posting here, I have been looking for this code for days and this is a last resort.

Currently I am working on a program that requires data from a listbox to be plotted onto a graph. However the data I need on the listbox comes from a text file, and has the following layout:

Year Day Radn MaxT MinT Rain Evap VP Code
1957 1 31.0 42.5 21.5 0.0 9.6 16.0 222072
1957 2 31.0 42.0 22.0 0.0 9.4 20.0 222072
1957 3 29.0 41.0 24.5 4.3 9.2 22.0 222072
1957 4 28.0 39.0 23.0 40.6 9.0 25.0 222072
1957 5 27.0 40.5 23.0 0.0 9.2 22.0 222072

I need the data to be copied from the "MaxT" and "MinT" into a format as follows: (MaxT,MinT) or (42.5,21.5), however im completely lost when it comes to getting the "MaxT" and "MinT" colums seperated, if anyone could supply any known code it would be greatly appreciated, Thank You.

-Greywolfz

reboot
01-09-2006, 06:24 PM
Split() the line and use the 3rd and 4th element of the resulting array for MaxT and MinT respectively.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum