procedure 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;
相关文章
- 12-22delphi save .dfm to .txt
- 12-221、Delphi 打开目录和txt文件模块
- 12-22delphi save .dfm to .txt
- 12-22Delphi中把字符串存储成各种编码的txt文档
- 12-22问题-delphi XE2 Stack Overflow- save your work and restart CodeGear
- 12-22Delphi txt文件读取及写入
- 12-22save a web page as a single file (mht format) using Delphi code
- 12-22Delphi 快速读取TXT 指定行的数据
- 12-22Delphi 提取TXT中的Email 数据
- 12-22虚拟机CentOS7开机报错:you might must to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot