| Syntax | (No syntax available.) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Documentation | 1. Read a file:$io{read}{file_name}{bytes_per_character}{offset}{length}
file_name, the name of the file to read (see the note about the filename syntax at the end of this document). bytes_per_character, the amount of bytes per character. Valid values are 1 for ASCII characters or 2 for unicode characters. The value of this parameter defaults to 1. offset, an offset of the specified file to start reading from. length, an amount of bytes to read starting from the specified offset.
rewrite, overwrites the specified file with the given contents. write, writes the given contents into the specified file starting at 'offset'. bytes_per_character, the amount of bytes per character. Valid values are 1 for ASCII characters or 2 for unicode characters. The value of this parameter defaults to 1. file_contents, the contents to be writen to the specified file. offset, the position in the specified file to start writting at. This parameter is only expected by the 'write' method.
move, moves the specified file to the given target_directory. target_directory, the target directory path to copy or move the file to (see the note about the filename syntax at the end of this document).
file_name, the name of the file to be deleted (see the note about the filename syntax at the end of this document).
listDirs, returns a listing of all subdirectories contained in the specified directory. listFiles, returns a listing of all the files contained in the specified directory.
file_name, the name of the file whos existance is to be examined (see the note about the filename syntax at the end of this document).
file_name, the name of the file whos extension is requested (see the note about the filename syntax at the end of this document).
file_name, the name of the file whos length is requested (see the note about the filename syntax at the end of this document).
file_name, the name of the file whos modification time is requested (see the note about the filename syntax at the end of this document).
file_name, the name of the file whos name is requested (see the note about the filename syntax at the end of this document).
path_name, the name of the path to examine (see the note about the filename syntax at the end of this document).
file_name, the name of the file to be created (see the note about the filename syntax at the end of this document).
target_path, the path the uploaded file is to be stored at (see the note about the filename syntax at the end of this document). max_length, the maximum length the uploaded file can have.
file_name, the name of the file whos length is to be changed (see the note about the filename syntax at the end of this document). new_length, the new length of the file.
then the file will be truncated. If the present length of the file as returned by the $io{getLength}{file_name} method is smaller than the 'new_length' argument then the file will be extended. In this case, the contents of the extended portion of the file are not defined.
file_name, the name of the file. If the file does not exist it will be created (see the note about the filename syntax at the end of this document).
zip_file_name, the name of the zip file (see the note about the filename syntax at the end of this document). If the zip file exists the specified file will be added to its contents else the zip file will be created. file_name, the name of the file to be zipped (see the note about the filename syntax at the end of this document). bytes_per_character, the amount of bytes per character. Valid values are 1 for ASCII characters or 2 for unicode characters. The value of this parameter defaults to 1. file_contents, the contents of the file to be zipped.
zip_file_name, the name of the zip file (see the note about the filename syntax at the end of this document).
Valid values for root_path are:
- private, sets the root_path to be the SITEFORUM static directory. - protected, sets the root_path to be the static directory of the current account. - public, sets the root_path to be the servers public www directory. - tmp, sets the root_path to be the SITEFORUM tmp directory. file_path can be any path contained to the specified root_path. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Examples | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group | Special | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Minimum required transaction-mode: | UPDATE=IO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Required scripting permission of the developer | PERMISSION_FL_BASIC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Minimum parameters | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Maximum parameters | 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||