Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Flush

Status
Not open for further replies.

GerritGroot

Technical User
Nov 3, 2006
291
ES
Hi,

In Microsoft's Developer Studio the following command exists:

USE PORTLIB
FLUSH(1)

Where 1 is the unit number of your file.

I'm wondering two things:

1. Is there a standard way in Fortran 77 to flush a file without the use of the PORTLIB library?
2. Is there an equivalent in G77?

Thanks,

Gerrit
 
There isn't a standard way of doing this in F77.

With g77, it depends on which version you're using. The earlier versions of g77 did an automatic flush. Actually it depends on whether you downloaded the code and built it yourself or took someone else's binary. This is configurable in the source code.

For later versions, the option was turned off because of inefficiency. To force a flush
Code:
call flush(unit)
 
So in G77 it's without any USE LIB function if I understand well.

Thank you!
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top