codetoad.com
Home||ASP|ASP.Net|C++/C#|DHTML|HTML|Java|Javascript|Perl|VB|XML||CodeToadPlus!||Forums||RAM
Search Site:
Search Forums:
Help me to write a C++ program sitha at 05:49 on Friday, July 14, 2006

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.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
Re: Problem with concatenation
how to genrates the crystal report by sending a id at runtime
help me
pls help me with this..
Re: Security - Code verify
Job @ EarlySail
Job @ EarlySail (perl)
IPC problem
Re: import contacts of msn/yahoo


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


Copyright codetoad.com 2001-2007