All- So the last time I wrote a program in Fortran was over 15 years ago. I have Chapman's book and trying to refresh my memory now. It's coming back to me, but slowly (old age).
So my problem. I have a file that contains a lot of information in sections and need strip out each section to another file. The sections starts with *NAME and ends with a * or $. Below is an example:
*NODE
600204 2.8416665 -0.132341 0.6456926
600205 2.8416665 -0.1343255 0.6204348
600206 2.8416665 -0.13631 0.595177
600207 2.8416665 -0.1618106 0.595177
600208 2.8416665 -0.1873112 0.595177
600209 2.8416665 -0.2128118 0.595177
600210 2.8416665 -0.2383125 0.595177
600211 2.8416665 -0.2638131 0.595177
600212 2.8416665 -0.2893137 0.595177
600213 2.8416665 -0.3148143 0.595177
600214 2.8416665 -0.3403149 0.595177
...
...
* !or may end with $
The file has multiple *NODE sections in different places in the file. How do I search for *NODE in a file, take that information in between, and write it to another file?
Any suggestion will be very helpful....
Roger
So my problem. I have a file that contains a lot of information in sections and need strip out each section to another file. The sections starts with *NAME and ends with a * or $. Below is an example:
*NODE
600204 2.8416665 -0.132341 0.6456926
600205 2.8416665 -0.1343255 0.6204348
600206 2.8416665 -0.13631 0.595177
600207 2.8416665 -0.1618106 0.595177
600208 2.8416665 -0.1873112 0.595177
600209 2.8416665 -0.2128118 0.595177
600210 2.8416665 -0.2383125 0.595177
600211 2.8416665 -0.2638131 0.595177
600212 2.8416665 -0.2893137 0.595177
600213 2.8416665 -0.3148143 0.595177
600214 2.8416665 -0.3403149 0.595177
...
...
* !or may end with $
The file has multiple *NODE sections in different places in the file. How do I search for *NODE in a file, take that information in between, and write it to another file?
Any suggestion will be very helpful....
Roger