Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to read specific line and column from a file

$
0
0
Hello guys i have a very specific problem. I would like to read a specific line and two specific columns from a file using cbut i have absolutely no idea how to do it. Can you please help me out...??

The file is like this


XFOIL Version 6.94

Calculated polar for: NACA 0042

1 1 Reynolds number fixed Mach number fixed

xtrf = 0.500 (top) 0.500 (bottom)
Mach = 0.000 Re = 0.100 e 6 Ncrit = 9.000

alpha CL CD CDp CM Top_Xtr Bot_Xtr
------- -------- --------- --------- -------- ------- -------
0.000 0.0001 0.04246 0.03263 0.0000 0.5000 0.5000



I want to read the cl and cd value...! How can i tell to C to go to the last line and read the second and the third
value...??


Thank you in advance

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>