I have a file as below
5.537681 3.993655 -5.651005
1.835011 6.016797 -5.632307
-2.336837 5.943220 -5.699044
Now I want to filter it with respect to the end value ie the first one is -5.651005.
I thought to read each line as a string then decide if the value satified the filter (eg < -5.6) and then write the string to a file, but I couldnt get this to work.
=> How do you use pointers to access part of a string (ie the -5.651005), pass it to a variable as a float??
I know this is simple, but any advice is gratefully received..... thx EG