17. März 2021 09:01
CR := 10;
LF := 13;
ImportFile.OPEN('C:\TEMP\im.txt');
ImportFile.CREATEINSTREAM(IStream);
WHILE NOT IStream.EOS DO BEGIN
IStream.READtext(Buffer);
FOR BufferPos := 1 TO STRLEN(Buffer) DO BEGIN
if Buffer[BufferPos] = CR then
...
17. März 2021 10:36
18. März 2021 15:28
Name DataType Subtype Length
ServerFileName Text
StreamReader DotNet System.IO.StreamReader.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Encoding DotNet System.Text.Encoding.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
FileStream DotNet System.IO.FileStream.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
FileMode DotNet System.IO.FileMode.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
//Setze Encoding
Encoding := Encoding.UTF8;
//Lade Datei
FileStream := FileStream.FileStream(ServerFileName,FileMode.Open);
StreamReader := StreamReader.StreamReader(FileStream,Encoding,TRUE);
//Lese Zeilen
WHILE NOT StreamReader.EndOfStream DO
ProceedFileLine(StreamReader.ReadLine);