Autor Beitrag
Paddymann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58


Delphi 5 Professional
BeitragVerfasst: Sa 13.05.06 13:29 
Hallo!
Ich erstelle Textdateien mit der Klasse TStringList.
1) Gibt es eine möglichkeit die Textdatei mit Attributen zu versehen also Schreibgeschützt oder versteckt?
2)Wenn ich mein Programm starte, welches die textdatei erstellt fängt er immer wieder in Zeile 1 an zu schreiben. Wie sage ich ihm, dass er nach der leztten Zeile, in der etwas steht weiter macht?

thx und mfg
Patti
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Sa 13.05.06 13:39 
hallo,

die attribute kannst du so ändern:
ausblenden Delphi-Quelltext
1:
FileSetAttr('c:\test.txt',2)					

die 2 steht für versteckt
1 für schreibgeschützt ;)

für alle weiteren optionen benutz die delphi hilfe :P

mfg
Paddymann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58


Delphi 5 Professional
BeitragVerfasst: Sa 13.05.06 14:30 
Danke!
Und was kann ich bei der 2.Frage machen?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 13.05.06 14:35 
Indem du den vorherigen Teil auch in die StringList lädst.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot