|
[Sponsors] |
October 30, 2007, 07:59 |
Fortran question
|
#1 |
Guest
Posts: n/a
|
Hi everybody,
I want to understand the following command lines from Peric's code: CHARACTER*10 FILIN, NAME*6 PRINT *, ' ENTER PROBLEM NAME (SIX CHARACTERS): ' READ(*,'(A6)') NAME WRITE( FILIN,'(A6,4H.cin)') NAME OPEN (UNIT=5,FILE=FILIN) REWIND 5 My question is about WRITE and OPEN command lines. I have understood that we write NAME in an internal file, but I did not understand the format '(A6,4H.cin)'. For OPEN command line, I did not understand what does it mean FILIN, name of file or what ?. if there's someone who can explain me this part of code, I will be thankful. Noureddine |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
a strange question about Fortran | Hall | Main CFD Forum | 9 | May 18, 2004 02:48 |
Question on USER FORTRAN: GETVAR | BoZ | CFX | 2 | May 6, 2003 10:32 |
Short question on command in user fortran | Franz Thomsen | CFX | 2 | June 20, 2000 06:35 |
'C' or FORTRAN or 'C++' | Yogesh Talekar | Main CFD Forum | 20 | October 21, 1999 04:00 |