RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THandleStream Class

THandleStream enables applications to read from and write to communications resources identified by a handle.

Pascal
THandleStream = class(TStream);
C++
class THandleStream : public TStream;

Use THandleStream to access files, sockets, named pipes, mailslots, or other communications resources that provide a handle when opened. For example, the FileOpen function provides a handle for a file on disk. THandleStream allows applications to use a uniform stream interface when performing I/O using a handle. 

To avoid the overhead of managing file handles, use TFileStream to work with disk files. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!