Hi Ennstate
Thank you for your reply again.
OK. May I can answer your questions by posting all the input and output file below. But, I have just discovered that and noticed that, there is big different between posting the file as QUOTE and PHP in this html forms.
The QUOTE forms gave arbitrary spacing for the file, with no specific format. Not like the PHP forms, gave the exact format of the file inside my machine, with spacing between each column.
This is the Input file using QUOTE forms:
Quote:
960109 914 4.54 25- 9.21 40-50.34 14.83 2.81 12 335116.5 0.26 6.8 81.7 D1
940129 559 37.02 24-28.93 39-51.79 0.86 1.99 17 151 9.0 0.07 0.2 0.4 B1
940130 1047 38.93 24-53.89 40-44.31 9.52 2.89 20 321 93.9 0.17 1.6 28.7 D1
940131 843 37.78 24-53.54 40-46.08 5.19 2.88 17 322 96.4 0.21 15.9 49.9 D1
951106 732 56.83 24-47.44 40-26.22 5.08 2.66 15 307 61.2 0.18 5.3 15.6 D1
951107 6 3 23.22 24-30.67 39-56.35 5.68 1.85 8 222 7.6 0.11 1.5 1.4 C1
951107 912 4.16 24-51.09 40-41.43 10.00 2.66 9 328 87.4 0.02 0.3 4.2 C1
951108 554 20.09 25- 8.88 41-15.85 10.00 2.94 7 339153.6 0.14 5.2211.8 D1
The same Input file using PHP, which gave the exact format with spacing, as it's look in my machine:
PHP Code:
960109 914 4.54 25- 9.21 40-50.34 14.83 2.81 12 335116.5 0.26 6.8 81.7 D1
940129 559 37.02 24-28.93 39-51.79 0.86 1.99 17 151 9.0 0.07 0.2 0.4 B1
940130 1047 38.93 24-53.89 40-44.31 9.52 2.89 20 321 93.9 0.17 1.6 28.7 D1
940131 843 37.78 24-53.54 40-46.08 5.19 2.88 17 322 96.4 0.21 15.9 49.9 D1
951106 732 56.83 24-47.44 40-26.22 5.08 2.66 15 307 61.2 0.18 5.3 15.6 D1
951107 6 3 23.22 24-30.67 39-56.35 5.68 1.85 8 222 7.6 0.11 1.5 1.4 C1
951107 912 4.16 24-51.09 40-41.43 10.00 2.66 9 328 87.4 0.02 0.3 4.2 C1
951108 554 20.09 25- 8.88 41-15.85 10.00 2.94 7 339153.6 0.14 5.2211.8 D1
And this the output file format using PHP, and you can see, with some how unorganised format after running the AWK code script:
PHP Code:
960109 914 4.54 25 9.21 40-50.34 14.83 2.81 12 335116.5 0.26 6.8 81.7 D1
940129 559 37.02 24.4822 39.8632 0.86 1.99 17 151 9.0 0.07 0.2 0.4 B1
940130 1047 38.93 24.8982 40.7385 9.52 2.89 20 321 93.9 0.17 1.6 28.7 D1
940131 843 37.78 24.8923 40.768 5.19 2.88 17 322 96.4 0.21 15.9 49.9 D1
951106 732 56.83 24.7907 40.437 5.08 2.66 15 307 61.2 0.18 5.3 15.6 D1
951107 6 3 23.22 24.5112 39-56.35 5.68 1.85 8 222 7.6 0.11 1.5 1.4
951107 912 4.16 24.8515 40.6905 10.00 2.66 9 328 87.4 0.02 0.3 4.2 C1
951108 554 20.09 25 8.88 41-15.85 10.00 2.94 7 339153.6 0.14 5.2211.8 D1
The interesting field for me, as I explained before is, 1st filed, 4th ~14th.
So, that's all, and I hope this can answer your questions.
looking forward for your help
Thanks
Amm