Link to home
Start Free TrialLog in
Avatar of rround
rround

asked on

Getting multiple substrings from a line in a file

I need to be able to get the string values from the following file entry.  The three string variables vary in length from 2 to 8 characters and also vary from line to line.  I need to print the three values to a listbox. I need help extracting the strings.


D [str_var_1] [str_var_2] 750.0 6500.0 0 2 0 [Str_var_3]
D [str_var_1] [str_var_2] 130.0 8925.0 0 2 0 [Str_var_3]
D [str_var_1] [str_var_2] 265.0 7925.0 0 2 0 [Str_var_3]
ASKER CERTIFIED SOLUTION
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This assumes your string values have no spaces in them, space delimitted list.