Class TWriteFile

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TWriteFile = class(TReferenceCounted)

Description

Class providing write access to files.

Hierarchy

Overview

Methods

Public function Seek(Dest: LongType; Relative: Boolean): Boolean; inline;
Public function Write(var Buffer; Size: LongWord): LongInt;

Properties

Public property FileName: StringType read GetFileName;
Public property Position: LongType read GetPos write SetPos;

Description

Methods

Public function Seek(Dest: LongType; Relative: Boolean): Boolean; inline;

Changes the file pointer position.

Parameters
Dest
Target position.
Relative
Whether Dest is relative to the current position.
Returns

True if successful, otherwise False.

Public function Write(var Buffer; Size: LongWord): LongInt;

Writes bytes from a buffer to the file.

Parameters
Buffer
The buffer to write
Size
Buffer Size in bytes
Returns

How many bytes were actually written.

Properties

Public property FileName: StringType read GetFileName;

The name of the opened file.

Public property Position: LongType read GetPos write SetPos;

The file pointer position.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22