Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

FORTRAN editint text file (specific line)

Status
Not open for further replies.

venturitr

New member
Feb 21, 2012
5
Hello everyone

I am trying to writing fortran code that edits spesific line of the text file. But I dont want to delete or edit other lines.
For example I am trying to edit 10069. line of s4t.bdf file and write that : "CONM2 2100000121000001 0.0658"

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

program f_read
open (unit = 1, file = "s4t.bdf", status = "old", action = "readwrite")
write (1,"(10070/,)") a
close(1)
endprogram f_read

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 
Replies continue below

Recommended for you

I'm confused... are you saying you don't have the original Fortran code?

Dan - Owner
Footwell%20Animation%20Tiny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor