I'm trying to read an array, but it gets error because the data is separated by ";" such as:
//EstacaoCodigo;NivelConsistencia;Data;Hora;MediaDiaria;MetodoObtencaoVazoes;Maxima;Minima;Media;DiaMaxima;DiaMinima;MaximaStatus;MinimaStatus;MediaStatus
88850000; 2; 08/01/1964;; 1; 1 ;;;;; 0; 0 88850000; 2; 09/01/1964;; 1; 1; 50.24; 2.78; 6.446; 30; 14; 1; 1; 88850000; 2; 10/01/1964;; 1; 1; 364.4; 3.26; 1.744.774; 9; 31; 1; 1; 88850000; 2; 11/01/1964;; 1; 1; 7.6; 1.18; 2.224; 21; 27; 1; 1; 1 88850000; 2; 12/01/1964;; 1; 1; 3.1; 0.575; 1,118,226; 2; 21; 1; 1; 88850000; 2; 01/01/1965;; 1; 1; 16.2; 0.315; 1.214.194; 17; 14; 1; 1; 1 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 1, 1, 63, 0.127, 6706, 581, 28, 10, 11,
The code I made was this:
program vazoes
implicit none
INTEGER, DIMENSION(3,80) :: a
INTEGER :: row,col,max_rows,max_cols
max_rows=3
max_cols=80
open(Unit = 11, file = 'vazoes.txt', status = 'old')
DO row = 1,max_rows
READ(11,*) (a(row,col),col=1,max_cols)
END DO
PRINT *, a(1,:)
END PROGRAM vazoes
Does anyone know what I should change to read the data?