salut,
alors j'ai un fichier d'integer ( bestand14) de type .dat et j'utilise pour le moment, pour entrer les données dan le fichier, "write". Mais Quand je les relis, le programme ne reprend pas les toutes derniers info donc il faudrait que je travaille avec "writeln". Mais quand je met "writeln" le programme me met la faute "Illegal type in write/writeln statement". Alors je ne sais pas comment je dois faire pour arriver a ce que cel marche!!?? Pourriez vous m'aider?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 AssignFile(Bestand14,'C://LeeftijdKinderenKinderenen.dat'); Rewrite(Bestand14); AantalKinderen := StrToInt(FormGrootOuders.EditKeuze1.Text); SetLength(JaarOuders,AantalKinderen); For teller := 0 to (AantalKinderen-1) do begin Write(Bestand14,JaarOuders[teller].LeeftijdOudersMoeder); end; CloseFile(Bestand14);
Partager