0053)fullfunc.html?xmlfile=datafileem --> POL Scripting Reference

File: Datafile.em

Description: Functions to access generic data files.
Last Modified: 5/1/2003

File Constants:

CreateDataFile( filespec, flags := DF_KEYTYPE_STRING )
Parameters:
Name Type
filespec String
flags Integer
Explanation
Creates a new data file.
filespec is in normal package descriptor format. 'filename' or '::filename' will create the new data file /data/ds/filename. ':pkgname:filename' will create /data/ds/pkgname/filename.
flags specifies if the keys of the new datafile are strings OR integers.
Return values
DataFile Reference. See the DataFile object documentation.
Errors
"Error in descriptor"
"An exception occurred"
"Invalid parameter type"
Related
Datafile



OpenDataFile( filespec )
Parameters:
Name Type
filespec String
Explanation
Opens a datafile for access.
filespec is in normal package descriptor format. 'filename' or '::filename' will open the data file /data/ds/filename. ':pkgname:filename' will open /data/ds/pkgname/filename.
Return values
DataFile Reference. See the DataFile object documentation.
Errors
"Datafile does not exist"
"Error in descriptor"
"An exception occurred"
"Invalid parameter type"
Related
Datafile



UnloadDataFile( filespec )
Parameters:
Name Type
filespec String
Explanation
Unloads a datafile
filespec is in normal package descriptor format. 'filename' or '::filename' will unload the data file /data/ds/filename. ':pkgname:filename' will unload /data/ds/pkgname/filename.
Return values
1 on success
Errors
"Unable to find data store file"
"Invalid parameter type"
Related
Datafile




If you know if any information is incorrect on these pages, mail your corrections to racalac@burdell.org

Copyright ©2003 David Carpman, all rights reserved. DO NOT REPRODUCE, MIRROR, ALTER, SPINDLE, MUTILATE, OR SIT ON.