Autor Beitrag
neo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Di 16.09.03 20:24 
Hallo!

Wie kann ich eine sehr große (32mb) reg bzw. txt Datei in eine Delphi Komponente einlesen?

Ich bekomme immer nur den Wert "ÿþW"
egal welche Komponente ich verwende.


Danke!
UWER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Mi 17.09.03 15:02 
Hallo neo,

hast du dir mal eine Reg-Datei mit einem HexEditor angesehen?

Das ist keine normale Textdatei. Die enthält entweder einen Unicode oder einen MultiByte-Zeichensatz. Du kannst ja mal probieren sie zeilenweise als Widestring einzulesen und dann ein Typumwandlung zu versuchen.

_________________
Gruß
UWER
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Mi 17.09.03 17:09 
Titel: RW:
Aber wenn ich die Datei von .reg auf .txt umbenenne, kann sie der Editor genauso darstellen.

PS: Hast du ein Code Beispiel?
UWER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Mi 17.09.03 18:31 
Hallo neo,

der Editor kann eben Multibyte-Zeichensätze, im Gegensatz zu den Delphi-Komponenten.

Leider habe ich momentan kein Code-Beispiel parat, müßte aber irgendwas im Fundus haben. Wenn ich mal ein bißchen mehr Zeit habe werde ich den Fundus mal durchstöbern.

_________________
Gruß
UWER
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mi 17.09.03 21:24 
teste es doch mal mit TFileStream.

_________________
MFG
Michael Springwald, "kann kein englisch...."