Okay, I'm trying to pull a few values out of a flat txt file, and set them to variables.
Example:
blah blah blah blah weight 2kg blah blah blah
What would be the method/syntax to search the file and set $weight = (in this case) 2 when I don't know what the value will be, or where in the file it will be?
Any help would be greatly appreciated,
Thanks
Archon
Example:
blah blah blah blah weight 2kg blah blah blah
What would be the method/syntax to search the file and set $weight = (in this case) 2 when I don't know what the value will be, or where in the file it will be?
Any help would be greatly appreciated,
Thanks
Archon