[Question:]How to split one file into 3/4 using fortran?
From: andy (andylcx_at_hotmail.com)
Date: 07/24/04
- Next message: andy: "[Question:]Difference between PGF90 and Compaq Visual Fortran 6.6"
- Previous message: Gary L. Scott: "Re: visualize images"
- Next in thread: Gary L. Scott: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Reply: Gary L. Scott: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Reply: glen herrmannsfeldt: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Maybe reply: robin: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Jul 2004 12:42:54 -0700
Hi there:
I have a question about how to split a file following into 3
different files.
The file is like this:
#comments 1
#....
#....
.
.
.
12 23 45 34 24 56
12 33 23 45 32 34
32 1 1 2 34 -9
...
...
...
#comments 2
#....
#....
.
.
.
12 23 45 34 24 56
12 33 23 45 32 34
32 1 1 2 34 -9
...
...
...
#comments 3
#....
#....
.
.
.
12 23 45 34 24 56
12 33 23 45 32 34
32 1 1 2 34 -9
...
...
...
My question is how to skip the comments part and use array to extract
the numbers from the file and store the numbers into three different
files? I have several files like this. In every file, the size of the
comment part and number part are the same, but they are different in
different file. I don't know how to open the array to store the
numbers because I do not know how large the array I need to open and I
also do not know when the end of number part reachs.
Any idea? Thanks in advance!
- Next message: andy: "[Question:]Difference between PGF90 and Compaq Visual Fortran 6.6"
- Previous message: Gary L. Scott: "Re: visualize images"
- Next in thread: Gary L. Scott: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Reply: Gary L. Scott: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Reply: glen herrmannsfeldt: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Maybe reply: robin: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|