Autor Beitrag
Blamaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: Sa 25.08.07 11:25 
Hi,

wie bekomme ich es hin das ein neu gespeichertes wort automatisch in die nächste freie Zeile gesetzt wird ?

Momentan überschreibt er bei mir immer die 1. Zeile.

mfg Yannic
Corpsman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 228

KUbuntu 10.4
Lazarus
BeitragVerfasst: Sa 25.08.07 11:38 
Ändere in Zeile 102 in deinem Code den Buchstaben i in j dann gehts.


Was ich versuche zu sagen ist das du schon ein bischen Code posten solltest sonst kann ich dir auch nicht sagen was du falsch machst.

_________________
--
Just Try it.
Blamaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: Sa 25.08.07 11:52 
Die momentane code stelle zum speichern sieht so aus:

ausblenden Delphi-Quelltext
1:
2:
Add(IntToStr(Id));
SaveToFile('C:\Programme\ID.txt');


Jetzt soll aber nicht immer die Id im Textfile überschrieben werden sondern unter der vorheriegen Id gespeichert werden.
Shorty
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 107

Win XP, Ubuntu 8.04
Delphi 7 Prof., Delphi 2005 Pers.
BeitragVerfasst: Sa 25.08.07 12:34 
Ich nehme mal an, dass du mit einer StringList arbeitest, dann lade vorher den Inhalt von ID.txt, hänge dann die nächste ID ran und speicher die ganze StringList wieder!
ausblenden Delphi-Quelltext
1:
2:
3:
LoadFromFile('C:\Programme\ID.txt');
Add(IntToStr(Id));
SaveToFile('C:\Programme\ID.txt');

MfG Shorty
Blamaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: Sa 25.08.07 13:10 
Jop so funktioniert es. Danke :)