mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 15:29:34 +02:00
TStrings: add missing SaveToFile overload with IgnoreEncoding parameter
git-svn-id: trunk@43945 -
This commit is contained in:
parent
7dba9f0294
commit
6ed89d4101
@ -749,6 +749,7 @@ type
|
||||
Function Reverse : TStrings;
|
||||
Procedure Reverse(aList : TStrings);
|
||||
procedure SaveToFile(const FileName: string); overload; virtual;
|
||||
procedure SaveToFile(const FileName: string; IgnoreEncoding : Boolean); overload;
|
||||
procedure SaveToFile(const FileName: string; AEncoding: TEncoding); overload; virtual;
|
||||
procedure SaveToStream(Stream: TStream); overload; virtual;
|
||||
procedure SaveToStream(Stream: TStream; IgnoreEncoding : Boolean); overload;
|
||||
|
@ -1502,6 +1502,21 @@ end;
|
||||
|
||||
|
||||
|
||||
Procedure TStrings.SaveToFile(const FileName: string; IgnoreEncoding : Boolean);
|
||||
|
||||
Var TheStream : TFileStream;
|
||||
|
||||
begin
|
||||
TheStream:=TFileStream.Create(FileName,fmCreate);
|
||||
try
|
||||
SaveToStream(TheStream, IgnoreEncoding);
|
||||
finally
|
||||
TheStream.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Procedure TStrings.SaveToFile(const FileName: string; AEncoding: TEncoding);
|
||||
|
||||
Var TheStream : TFileStream;
|
||||
|
Loading…
Reference in New Issue
Block a user