CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Reading nth line from a file in FORTRAN 90

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2006, 16:46
Default Reading nth line from a file in FORTRAN 90
  #1
Rajat Goyal
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!
  Reply With Quote

Old   June 16, 2006, 09:03
Default Re: Reading nth line from a file in FORTRAN 90
  #2
ztdep
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
  Reply With Quote

Old   June 16, 2006, 11:37
Default Re: Reading nth line from a file in FORTRAN 90
  #3
pc
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.

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:17.