I/O file objects  chmod()

Chapter 5: General Objects and Methods

assoc()

Description

Associates the specified file or directory with the I/O file object, causing the I/O file object to reference the specified disk file or directory. The path within filename can be either an absolute or relative path.

Syntax

assoc(string filename);

Parameter

Description

filename

String containing the path and name of the file or directory. Use forward slashes (/) in the path.

Return value

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

Usage

Pointer to object

Object

string new_file;

my_iofobj.assoc(“/usr/old_dir”);

new_file=”/usr/tmp/nw_file”;

piof->assoc(new_file);





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

View this book as PDF