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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WRITE statement ?

Status
Not open for further replies.

bobo12

Programmer
Joined
Dec 26, 2004
Messages
74
Location
US
hi, just wondering if someone one plz tell me what this does...
WRITE (11,FMAT3) (ITEM(I), I = NSTAR,NSTOP)

so i realize there is an int array ITEM[]
11 is file descriptor for file,
CHARACTER*127 FMAT3

but i am not sure what is being written to file? is it FMAT3 or ITEM[]?

how what is the significance of FMAT3?

thanks in advance
 
FMAT3 is the format, item is written to the file in the format described by FMAT3. For instance, if
Code:
FMAT3 = '(3I4)'
Then ITEM will be written in 3 columns, each of width 4. If there are more than 3 items, then there will be a new line after every 3 items.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top