Autor Beitrag
sahib
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: Sa 09.07.05 01:10 
Hallo.

Ich habe gerade eine Unzulänglichkeit (für mich) in der prozedur ReadLn entdecken müssen. Es wurden nur Windows-konforme Zeichenketten - mit #13#10 endend - zurückgegeben. Wenn die Zeilen in der Text-Datei aber lediglich mit #10 (Unix?) enden, so wird der gesamte Dateiinhalt zurückgegeben.

Daher habe ich betreffende ReadLn.asm kopiert und modifiziert, sowie in der system.pas die neue Funktion hinzugefügt.

Wie aber nun kompilieren, sodass ich das auch verwenden kann?

Danke schon einmal,
Christian
sahib Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: Sa 09.07.05 08:51 
Erledigt. Ich löse das Problem anders, denn viele Wege führen nach Rom.

Christian
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 09.07.05 09:42 
dann poste doch bitte deine lösung, dmit auch andere leute etwas davon haben !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 09.07.05 09:42 
Darf man fragen, wie du's gelöst hast? Das würde einige (incl. mir) bestimmt interessieren

AXMD

//EDIT: :x 20sec. zu spät
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Sa 09.07.05 10:25 
einfachste lösung ist vermutlich das direkte einbinden der funktion readln in den source des eigenen programms...oder schlicht das neucompilieren von system.pas

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
sahib Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: Sa 09.07.05 19:11 
Hi.

Ich habe von der modifizierten ReadLn-Lösung abgesehen. Es wurde eh immer Read aufgerufen, mit drei anschließenden Vergleichen (EoF, #13, #10). Da habe ich mir gedacht, dass ich gleichen einen TMemoryStream nehmen kann und den Speicher dann selber durchforste.

Christian