This is probably a rookie question, but I couldn't find the answer in the search. I got a variable: char buffer[ 128 ]; now I've made it's value through a search script, coming from a big file to:
"Density @ 15°C kg/m3 990.1 ( 991.0 Max ).BR.Viscocity @50°C cSt 355."
This is a specific line of 128 chars that I'm intrested in, more specifically the float "990.1". I need to get this out of all my files which is a bunch so getting the program to search for that specific text is not ok (I'll need to loop through a lot of files), it has to search for the first float. I've been trying with sscanf, but been stuck on it for a while now so I thought I'd ask.
Any help would be much appreciated!