More portable writeLine function
This commit is contained in:
parent
223aed578b
commit
e24ecf331f
|
@ -1265,12 +1265,7 @@ End;
|
|||
|
||||
Procedure TInterpEngine.FileWriteLine (Var F: File; Str: String);
|
||||
Begin
|
||||
{$IFDEF WINDOWS}
|
||||
Str := Str + #13#10;
|
||||
{$ENDIF}
|
||||
{$IFDEF UNIX}
|
||||
Str := Str + #10;
|
||||
{$ENDIF}
|
||||
Str := Str + LineTerm;
|
||||
|
||||
BlockWrite (F, Str[1], Ord(Str[0]));
|
||||
|
||||
|
|
Loading…
Reference in New Issue