delphi save .dfm to .txt
2021-01-18 19:36
标签:roc binary final span file object position com nal delphi save .dfm to .txt 标签:roc binary final span file object position com nal 原文地址:https://www.cnblogs.com/tobetterlife/p/12173002.htmlprocedure TForm2.saveDfm;
var
inStream,outStream:TMemoryStream;
begin
inStream:=TMemoryStream.Create;
outStream:=TMemoryStream.Create;
try
inStream.WriteComponent(self);
inStream.Position:=0;
ObjectBinaryToText(inStream,outStream);
outStream.Position:=0;
outStream.SaveToFile(‘c.txt‘);
finally
FreeAndNil(inStream);
FreeAndNil(outStream);
end;
end;
下一篇:C#执行系统命令
文章标题:delphi save .dfm to .txt
文章链接:http://soscw.com/index.php/essay/43784.html