Two versions of the include file are provided, they expose the same interface but use
the FileSystemObject on IIS/ASP and the MSCEFile object on PocketASP.
Each function prototype is listed below with a brief description:
| prototype | return | description |
MZFS_Exists [in]sFilePath |
true if exists otherwise false |
check if the given file exists |
MZFS_Properties [in]sFileName, [out]sFileLen, [out]sDateTime, [out]sAttr |
true if successfull otherwise false |
collect the property information for the given file and provide in return values |
MZFS_DeleteFile [in]sFilePath
| true if deleted otherwise false |
delete the file |
MZFS_CopyFile [in]sSrcFilePath, [in]sDestFilePath
| true if copied otherwise false |
copy the file from source to destination location |
MZFS_MoveFile [in]sSrcFilePath, [in]sDestFilePath
| true if moved otherwise false |
move the file from source to destination location |
MZFS_Open [in]sFilePath, [in]bForRead, [in]bForWrite, [in]bForAppend [out]oFileHandle |
true if opened otherwise false |
open a file in appropriate mode given state of Read/Write/Append options. If true is returned oFileHandle will contain a value that can be used in read/write calls |
MZFS_ReadLine [in]oFileHandle, [out]sLineOfFile |
true if line read otherwise false |
attempt to read a line of text from the specified file |
MZFS_WriteLine [in]oFile, [in]sText |
true if line written otherwise false |
attempt to write a line of text to the previously opened file |
MZFS_Close [in]oFile |
(none)
|
close a file opened with MZFS_Open |
MZFS_DirContent [in]sPath, [in]bFiles, [in]bDirectories
| vertical bar (|) delimited list of filenames
|
obtain list of files and/or directories in given location |
MZFS_MakeDir [in]sPath
| true if created otherwise false
|
create a new directory at the given location |
MZFS_DeleteDir [in]sPath
| true if removed otherwise false
|
remove a directory and all its contents (and subtrees) |
MZFS_SetAttr [in]sFileName, [in]nAttrVal, [in]bAdd
| true if set otherwise false
|
using the pre-defined constants, either add or remove a file attribute |
MZFS_GetLastErrorText (none)
| string containing last recorded error
|
get information on the last failed file function call. |