I have the following ASCII file (when something like 1176*0.00 is found it means 1176 zero values)
1176*0.00 633.82 473.29 427.05 53*0.00 495.94 431.90 430.59 254.14
52*0.00 644.01 479.33 409.93 251.03 203.75 51*0.00 593.75 392.51
316.05 269.15 138.96 100.00 50*0.00 531.86 541.30 380.50 247.25 201.51
100.00 50*0.00 569.89 429.81 376.89 286.90 155.97 100.00 0.00 0.00
48*0.00 643.96 414.05 429.13 355.20 100.00 100.00 0.00 0.00 0.00 0.00
46*0.00 746.00 454.94 264.39 348.52 125.45 101.16 100.00 0.00 0.00
47*0.00 740.42 431.28 350.94 252.46 147.51 100.00 100.00 100.00 0.00
47*0.00 643.98 488.64 390.72 256.48 109.53 0.00 100.00 100.00 100.00
47*0.00 724.29 523.68 371.88 247.64 0.00 0.00 100.00 100.00 100.00
Any suggestions in how to read it and store the numbers into arrays without too much hassle?
Last edited on
Are a*b expressions guaranteed not to be separated by spaces?
Yes, they won't be separated