The utility library provides some functions for working with files. These functions are helpful with file handling:
typedef T_PTR (*T_FILE_TRAV_FUNC) (T_FILE
file
, T_PTR
arg
);
where file
refers to the open file being visited, and arg
is the user-specified traversal argument.
T_BOOL (*T_FILE_CLOSE_FUNC) (FILE *
file
);
where file
is the file being closed.
FILE *(*T_FILE_OPEN_FUNC)
(T_STR file_name
, T_STR
file_mode
);
where file_name
specifies the file to be opened, and file_mode
specifies the mode to be used to open the file.
T_INT4 (*T_FILE_READ_FUNC)
(T_PTR buff
, T_UINT4
size
, FILE *
file
);
where buff
specifies where data is to be placed, size
specifies the number of bytes to be read, and file
refers to the file being read.
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |