Autor Beitrag
ma$ter
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 27.04.07 18:04 
Hallo,
ich moechte den gesamten Inhalt / Text einer .ini verschleiern - gibt es einen Befehl, mit dem man den gesamten Inhalt einer .ini in einen string laden kann?

Danke in voraus!
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Fr 27.04.07 18:09 
Das sind zwei Frage, oder?

zu 1.) Einfache Suche in: Delphi-Forum, Delphi-Library BLOWFISH Verschlüsselung
zu 2.) memo1.lines.loadfromfile('c:\deineini.ini'); (der String lautet dann memo1.text)
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Fr 27.04.07 18:21 
user profile iconKarlson hat folgendes geschrieben:
Das sind zwei Frage, oder?

zu 1.) Einfache Suche in: Delphi-Forum, Delphi-Library BLOWFISH Verschlüsselung
zu 2.) memo1.lines.loadfromfile('c:\deineini.ini'); (der String lautet dann memo1.text)

Bzw. wenn man das ganze nicht in einem Memo haben will, einfach eine TStringList erzeugen und dann mit x.Lines.LoadFromFile(...) laden.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Fr 27.04.07 18:23 
Ja gut...Lines vom Memo sind auch nur TSTrings. Natürlich nimmt man lieber ne stringlist als ein unsichtbares Memo für sowas...aber ich wollt das Beispiel halt allgemein halten bzw. ihm nur den LoadFromFile Befehl erklären.