Hi,
I have some text file like with following structure (also attached). I want to extract only data in the form of an array:
------------------------------------------
2048 52 429 425 398 200.000000
0 638 940 921 906 25 26 27 25 61
4096 213 1116 1371 398 200.000000
---------------------------------------------
Could you please suggest me some code in C which could help me?

Thanks & Best Regards,
Dhiraj Kumar
---------------------------------------------------------------------------------------------------------
Processor 0 starts measuring
Processor 1 starts measuring
Processor 2 starts measuring
Processor 3 starts measuring Now
2048 52 429 425 398 200.000000 (1) 200.000000 (1) 200.000000 (1) 200.000000 (1) 0 0 0 0 638 940 921 906 25 26 27 25 61 56 57 68 12 0 0 92 94 88 93 22 27 26 24 17253.64 17289.94 17121.64 17645.24 12790.07 12731.39 11773.49 13572.96 10053.25 9466.09 9614.43 10782.55 1780.08 0.00 0.00 23993.30 185868.07
4096 213 1116 1371 398 200.000000 (1) 200.000000 (1) 200.000000 (1) 200.000000 (1) 2 37 37 38 1742 1830 1977 2938 131 119 105 25 227 365 320 69 66 0 0 1142 971 1098 1873 83 152 139 63 114186.41 114153.41 115519.62 124165.69 146847.32 133024.25 148095.59 238356.77 37613.95 56616.74 49632.36 10930.89 12726.70 0.00 0.00 103338.79 1405208.49
6144 213 1116 1371 398 200.000000 (1) 200.000000 (1) 200.000000 (1) 200.000000 (1) 2 37 37 38 3731 3000 3638 4986 136 210 167 25 238 624 415 69 66 0 0 2848 2019 2519 3628 85 226 176 63 220618.86 213330.20 217445.34 231327.45 366008.87 268563.22 326605.35 463775.72 39477.50 97741.25 67665.43 10930.89 12726.70 0.00 0.00 151112.33 2687329.10
8192 213 1150 1405 398 200.000000 (1) 200.000000 (1) 200.000000 (1) 200.000000 (1)
---------------------------------------------------------------------------------------------------------

This really isn't a comment on the tutorial, and would be better posted in the C Forum. And there you might see a reminder to take a stab at writing code yourself rather than asking someone else to write your code for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.