close()  crc()

Chapter 5: General Objects and Methods

copy()

Description

Copies the contents of an I/O file object associated file, naming the new copied file with the value in newName. This method creates the new file with the permissions of the source I/O file object. If a file named newName already exists, this method overwrites the existing file.

Syntax

copy(string newName);

Parameter

Description

newName

The name of the copied file.

Return value

Integer. Returns 1 for success, and 0 for failure.

Usage

Pointer to object

Object

string newName;

string newName;

newName = "my_copy".

newName = “my_copy”;

piof->copy(newName);

my_iofobj.copy(newName);





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

View this book as PDF