![]() ![]() TFileStream is a descendant of the stream classes. TFileStream offers multiple functionality: persistence, interaction with other streams, and file I/O. It is used for high-level object representations of file streams. ![]() To this end, it overrides some of the methods in TStream and implements them for the case of files on disk, and it adds the FileName property to the list of public properties. TFileStream is a class that enables applications to read from and write to a file on disk. TFileStream is a TStream descendant that stores or reads it's data from a named file in the file system of the operating system. Stream that stores its data in a named file on disk.īase class for streams that are identified by an OS handle. You can use these methods to read from or write to the file, copy data to or from other stream classes, and read or write components values. Because TFileStream is a stream object, it shares the common stream methods. You may try this: function R(const FileName: string): string var M: TFileStream begin M : TFileStream.Create(FileName, fmOpenRead) try SetLength(Result, M. Type TFileStream = class ( THandleStream ) The TFileStream class enables applications to read from and write to a file on disk. Stream that stores its data in a named file on disk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |