mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 13:30:47 +02:00
* change mode fmappend to fmoutput in streamopen. Refer to comments in text.inc.
This makes append work in streamio. git-svn-id: trunk@46268 -
This commit is contained in:
parent
aa633544f1
commit
f1dbae577c
@ -99,7 +99,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
InOutFunc:=@StreamWrite;
|
InOutFunc:=@StreamWrite;
|
||||||
FlushFunc:=@StreamWrite;
|
FlushFunc:=@StreamWrite;
|
||||||
if mode=fmAppend then
|
if Mode=fmAppend then
|
||||||
|
begin
|
||||||
|
Mode:=fmOutput; // see comments in text.inc
|
||||||
Try
|
Try
|
||||||
GetStream(F).Seek(0,soFromEnd);
|
GetStream(F).Seek(0,soFromEnd);
|
||||||
except
|
except
|
||||||
@ -109,6 +111,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ ---------------------------------------------------------------------
|
{ ---------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user