rockfish12
Technical User
What i would like to know is how to read a text file - located at, say, c:\windows\desktop\file.txt - that has a bunch of information in it, but only extract a few particular strings from it.
Though I won't know the exact string values that I want ahead of time, they will always be numbers that will always be set off by a specific phrase/text string, like so:
RANDOM TEXT ABOVE
RANDOM TEXT ABOVE
West_Bounding_Coordinate: -117.125
East_Bounding_Coordinate: -117.000
North_Bounding_Coordinate: 32.625
South_Bounding_Coordinate: 32.500
RANDOM TEXT BELOW
RANDOM TEXT BELOW
Basically, I want to be able to extract the numbers - in this case, -117.125, -117.000, 32.625, and 32.500 - and store them in fields in an Access table.
Any advice on how to do this?
Though I won't know the exact string values that I want ahead of time, they will always be numbers that will always be set off by a specific phrase/text string, like so:
RANDOM TEXT ABOVE
RANDOM TEXT ABOVE
West_Bounding_Coordinate: -117.125
East_Bounding_Coordinate: -117.000
North_Bounding_Coordinate: 32.625
South_Bounding_Coordinate: 32.500
RANDOM TEXT BELOW
RANDOM TEXT BELOW
Basically, I want to be able to extract the numbers - in this case, -117.125, -117.000, 32.625, and 32.500 - and store them in fields in an Access table.
Any advice on how to do this?