SaveToFile(FileName: String);
FileName - a full name of the file, from which the container has to be loaded.
The SaveToFile method saves the container to a file.
Executing the example requires the file "C:\Filter.xml" that contains a filter of access protocol.
Sub Main;
Var
FilCon, FilConDef: IAuditFiltersContainer;
Begin
FilCon := New AuditFiltersContainer.Create;
FilCon.LoadFromFile("C:\Filter.xml");
FilConDef := New AuditFiltersContainer.Create;
FilConDef.Assign(FilCon);
FilConDef.SaveToFile("C:\Copy.xml");
End Sub Main;
After executing the example, the FilCon container is loaded from the file C:\Filter.xml and is copied to the FilConDef container. The FilConDef container is saved to the C:\Copy.xml file.
See also: