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
[…] error I get is can't read or write variable of this typeThe problem’s what jamie just wrote. It must read
you need to use the Instance to fill data in not the type.
replace jugadores with unicosJugadores
for the READ(….) and write problem areas
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 typeThe problem’s what jamie just wrote. It must readThe first parameter of read (https://wiki.freepascal.org/Read) and write (https://wiki.freepascal.org/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.
read(conjuntoJugadores, unicosJugadores); write(unicosJugadores.nombre, unicosJugadores.edad); // print to `output`
You have accidentally specified the name of a data type, though. See also File handling in Pascal (https://wiki.freepascal.org/File_Handling_In_Pascal) in the Wiki.