For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2006 > Re: Dusting off Visual/Digital Fortran - how the heck to migrate









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Dusting off Visual/Digital Fortran - how the heck to migrate
N. Shamsundar

2006-01-13, 9:57 pm

Charlie wrote:
> Rob,
>
> Okay, I see where this is going. It will work, but it's going to
> hurt :).


I don't see why it'll hurt. Try this:

program tst
open(unit=6,file='PRNT')
c
c The following three lines substitute for your big code
c
do i=1,10
write(6,'(1x,2I8)')i,i*i
end do
close(6)
stop
end

When you run this program, you'll have a file called PRNT. You may print
it, read it, or throw it away as you wish.

N. Shamsundar
University of Houston
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com