TMemoryStream

Using Delphi objects to store configuration information

http://delphi.about.com/library/bluc/text/uc090302a.htm
The purpose of this article is to explain how to use Delphi objects to substitute the inifiles (and other similar techniques) to store configuration information.

{-----------------------------------------------------------------------------
 Unit Name: uObjetos
 Author:    CopyRight?2002 - Sebasti醤 Mayor?- Argentina
 eMail :    <a href="mailto:DelphiHelper@Yahoo.com.ar" rel="nofollow">DelphiHelper@Yahoo.com.ar</a> - MySoft@Programmer.net
 Purpose:   How to use Objects to store configuration information
            in windows registry or files.
 History:

Delphi Streams, streams, ... TStream

What is a stream? TStream?
A stream is what its name suggests: a flowing "river of data". A stream has a beginning, an end, and you're always somewhere in between of these two points.
Using Delphi's TStream objects you can read from or write to various kinds of storage media, such as disk files, dynamic memory, and so on.
What data can a stream contain?

同步内容