Difference between revisions of "F90: Lendo de um arquivo"
From AdonaiMedrado.Pro.Br
(New page: == Exemplo do conteúdo do arquivo aula.txt == 3 4 == Arquivo aula.f90 == <code lang="fortran"> PROGRAM aula IMPLICIT NONE INTEGER :: A,B OPEN (UNIT=10, FILE="aula.txt", STATUS="OLD"...) |
(No difference)
|
Revision as of 15:00, 11 November 2008
Exemplo do conteúdo do arquivo aula.txt
3 4
Arquivo aula.f90
PROGRAM aula IMPLICIT NONE INTEGER :: A,B OPEN (UNIT=10, FILE="aula.txt", STATUS="OLD") READ (10,*) A READ (10,*) B WRITE (*,*) A+B CLOSE (10) END PROGRAM aula