This module allows access to file data through the ar\content\filesFile api. You cannot create or delete a file directly, only through other api's, like ar\files, which manages files saved per object in the store, or through ar\http\files which handles uploaded files.
(string) | read | Read a number of bytes from the file. See fread. |
(string) | readfile | Reads and outputs the file. See readfile. |
(void) | write | Writes a string to the file. See fwrite. |
(bool) | eof | Returns true if the end of file has been reached. See eof. |
(int) | size | Returns the size of the file in bytes. See getSize. |
(int) | getc | Gets the next character from the file. See fgetc. |
(string) | gets | Gets the next line from the file. See fgets. |
(string) | getContents | Reads the remainder of the file into a string. See stream_get_contents. |
(int) | seek | Sets the position of the file pointer to the given offset. See fseek. |
(int) | tell | Returns the current position of the file pointer. See ftell. |
(bool) | truncate | Truncates the file to the given length. See ftruncate. |
(bool) | rewind | Rewind the position of the file pointer. See rewind. |