0

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)
---------------------------------------------------------------------------------------------------------

Attachments
Setting the frequency divider of processor 0 to 1
Setting the frequency divider of processor 1 to 1
Setting the frequency divider of processor 2 to 1
Setting the frequency divider of processor 3 to 1
Setting the PLL delay of device 0 to 0
Setting the PLL delay of device 1 to 0
Setting the PLL delay of device 2 to 0
Setting the PLL delay of device 3 to 0
Setting the PLL delay of device 4 to 0
Warning: Only static frequency scaling will be allowed in this system!

ResetGen_1: instantiated !
s0: instantiated !
Uploaded Program Binary: TargetMem_1.mem
s1: instantiated !
Uploaded Program Binary: TargetMem_2.mem
s2: instantiated !
Uploaded Program Binary: TargetMem_3.mem
s3: instantiated !
Uploaded Program Binary: TargetMem_4.mem
SharedMem_4: instantiated !
SemaphoreMem_5: instantiated !
Intdev_6: instantiated !
init0: instantiated !
init1: instantiated !
init2: instantiated !
init3: instantiated !
shared_8x8ICN.Node_1: instantiated !
AstPower message: Power enhanced node shared_8x8ICN.Node_1 is being initialized
target_private:0 start_add:0, stop_add:bfffff
target_private:1 start_add:1000000, stop_add:1bfffff
target_private:2 start_add:2000000, stop_add:2bfffff
target_private:3 start_add:3000000, stop_add:3bfffff
target_private:4 start_add:19000000, stop_add:190fffff
target_private:5 start_add:20000000, stop_add:20003fff
target_private:6 start_add:21000000, stop_add:2100014f
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) 2 37 37 38 5779 3983 4485 7034 136 311 274 25 238 914 759 69 66 0 0 4603 2925 3323 5384 85 301 261 63    327780.62    310524.78    314228.51    338507.90    591427.81    389872.03    438212.04    689292.00     39477.50    143618.84    120780.68     10930.89     12726.70         0.00         0.00    216819.49   3944199.79
10240 4189 1150 1437 6535 200.000000 (1) 200.000000 (1) 200.000000 (1) 200.000000 (1) 14 49 37 50 7825 4827 5498 9078 136 402 363 25 238 1263 1032 69 82 0 0 6369 3730 4245 7148 97 399 336 75    434851.07    407537.85    412058.89    445468.36    817354.35    499196.32    561313.43    914588.27     39477.50    195853.12    162050.20     10930.89     16027.38         0.00         0.00    280867.39   5197575.02
12288 7113 1230 1468 9459 200.000000 (1) 200.000000 (1) 200.000000 (1) 200.000000 (1) 31 67 67 75 9679 6107 7177 10911 166 492 423 44 267 1456 1111 113 132 0 0 8001 4890 5719 8750 126 468 372 114    539659.91    506888.45    513748.10    550465.30   1024359.56    647828.71    743664.38   1119429.93     44783.87    227341.73    178018.91     17457.85     25762.48         0.00         0.00    333153.86   6472563.03
2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Dave Sinkula
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.