|
[Sponsors] |
June 15, 2006, 16:46 |
Reading nth line from a file in FORTRAN 90
|
#1 |
Guest
Posts: n/a
|
HI everybody is there neway to read nth line from a data file in fortran 90 directly. that is i dont want to use do i=1,n-1 technique as my file is really long.
thanks in advsance! |
|
June 16, 2006, 09:03 |
Re: Reading nth line from a file in FORTRAN 90
|
#2 |
Guest
Posts: n/a
|
I thoutghout you can use a direct method to read it! plese find a book for reference! since the read method can be diveded into "sequential and direct method
|
|
June 16, 2006, 11:37 |
Re: Reading nth line from a file in FORTRAN 90
|
#3 |
Guest
Posts: n/a
|
To do that the file must be created as direct access to begin with. If it was created as a sequential file you're stuck with reading each of the n-1 records first.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 06:29 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 17:51 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 17:18 |
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise | mbeaudoin | OpenFOAM Installation | 20 | June 17, 2008 06:43 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 20:51 |