readDir()  rename()

Chapter 5: General Objects and Methods

readFile()

Description

Reads the entire contents of the I/O file object’s associated file into the dataBlob parameter. Because this method reads the entire file, it is generally used only when moving files through a system. Maximum file size is determined by operating system limits.

Syntax

readFile(blob *dataBlob);

Parameter

Description

dataBlob

Pointer to the blob object to hold the data read from the file.

Return value

Integer. Returns the number of bytes of data read, if successful, and 0, if failed.

Usage

Pointer to object

Object

blob data_read;piof->readFile (&data_read);

blob data_read;my_iofobj.readFile (&data_read);





Copyright © 2005. Sybase Inc. All rights reserved. rename()

View this book as PDF