|
Hi,
I am new to C++ program, Pls help me for following probelm.
I have a text file as following,
DYNAMIC ANALYSIS
ŽŸŒ³�†ƒP�[Æ’X “à •â€â€°Ã�U�@Šˆ‰×�d
3 1 0 0
KACC KDIS KSTS KSTN KSSR KJOT KNOD KRAT KSEC KMSS KWPR
7 7 14 14 0 14 1 0 0 1 0
FREQ GFREQ EXMAX
0.0 2.00 1.0D-6
VISCOUS BOUNDARY INFORMATION
3 2.00
77 60 11 66
0 0
‰Ã‘¬“xŽž��—ð�o—Ã�ߓ_â€Ã”�†(KACC=0.OR.>NTJ‚Ì�ê�‡,�Ã�œ)
1080 1254 1484 1549 1563 1592 1608
JOINT‹““®�o—×v‘fâ€Ã”�†(KJOT=0.OR.>JOINT‚Ì�ê�‡,�Ã�œ)
7 8 20 22 117 118 127
128 129 130 133 134 139 140
NODES
1 -101.582 -234.742 280.000 3
2 -76.838 -234.742 280.000 3
3 -54.479 -234.742 280.000 3
4 -34.276 -234.742 280.000 3
5 -16.020 -234.742 280.000 3
6 0.476 -234.742 280.000 3
7 19.063 -234.742 280.000 3
8 37.649 -234.742 280.000 3
9 72.755 -234.742 280.000 3
10 112.781 -234.742 280.000 3
11 158.418 -234.742 280.000 3
Now I want to extract only nodes from this file and put them into another text file as follows,
101.582 -234.742 280.000
-76.838 -234.742 280.000
-54.479 -234.742 280.000
-34.276 -234.742 280.000
-16.020 -234.742 280.000
0.476 -234.742 280.000
19.063 -234.742 280.000
37.649 -234.742 280.000
72.755 -234.742 280.000
112.781 -234.742 280.000
158.418 -234.742 280.000
I should omit all the setences and other details, I only need coordinates of nodes in another text file. Pls help me how to write a program.
Regards,
Sitha.
|
|
|
|
|
|
|
// |