Hi, I have a problem when reading a file, It contains records,
No, it does not: I don’t see your
repeat…until loop actually containing a
write(conjuntoJugadores, unicosJugadores);
[…] error I get is can't read or write variable of this type
The problem’s what jamie just wrote. It must read
read(conjuntoJugadores, unicosJugadores);
write(unicosJugadores.nombre, unicosJugadores.edad); // print to `output`
The first parameter of
read and
write are the source or destination respectively (
input and
output can be automatically supplemented) and the following parameters are
variables for
read and
expressions for
write.
You have accidentally specified the name of a data type, though. See also
File handling in Pascal in the Wiki.