Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
Turbo Delphi für Win32
|
Re: Mehrere Memo's Speicher
24. Jan 2007, 23:52
Delphi-Quellcode:
procedure TForm7.Button7Click(Sender: TObject);
var FileStream: TMemoryStream;
memos :TFileName;
a,b :String;
c,d :integer;
begin
a:=Memo1.Text;
b:=Memo2.Text;
c:=Length(a) ;
d:=Length(b) ;
FileStream := TMemoryStream.Create;
FileStream.Write(c, SizeOf(Integer));
FileStream.Write(a[1], c);
FileStream.Write(d, SizeOf(Integer));
FileStream.Write(b[1], d);
memos:= ExtractFilePath(ParamStr(0))+'Bemerkungen\'+ ComboBox4.Text+'.txt';
FileStream.SaveToFile(memos);
FileStream.Free;
end;
So gehts.
Manuel Eberl „The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
|