<explain>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.</explain>
<explain>flags specifies if the keys of the new datafile are strings OR integers.</explain>
<return>DataFile Reference. See the DataFile object documentation.</return>
<error>"Error in descriptor"</error>
<error>"An exception occurred"</error>
<error>"Invalid parameter type"</error>
<related>Datafile</related>
</function>
<functionname="OpenDataFile">
<prototype>OpenDataFile( filespec )</prototype>
<parametername="filespec"value="String"/>
<explain>Opens a datafile for access.</explain>
<explain>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.</explain>
<return>DataFile Reference. See the DataFile object documentation.</return>
<explain>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.</explain>
<return>1 on success</return>
<error>"Unable to find data store file"</error>
<error>"Invalid parameter type"</error>
<related>Datafile</related>
</function>
<functionname="ListDataFiles">
<prototype>ListDataFiles( )</prototype>
<explain>Returns an array of structs containing: </explain>
<explain>.pkg - name of the package the datafile belongs to</explain>