A predefined object containing files related methods. Note that iOS devices file system is case sensitive. Note that each application can only access its own files. There is not any shared location (such as Android File.DirRootExternal).
Copies the input stream to the output stream. The input stream is closed at the end.
Delete (DirAsString, FileNameAsString) AsBoolean
Deletes the given file. Returns true if the file was deleted.
DirAssetsAsString [read only]
Returns a reference to the files added to the Files tab. These files are read-only.
DirDocumentsAsString [read only]
The documents folder should only be used to store user generated content. It is possible to make this folder sharable through iTunes. This folder is backed up by iTunes automatically.
DirLibraryAsString [read only]
The place for any non-user generated persistent files. This folder is backed up by iTunes automatically. You can create a subfolder named Caches. Files under that folder will not be backed up.
DirTempAsString [read only]
A temporary folder. Files in this folder are not backed up by iTunes and may be deleted from time to time.
Initializes an InputStream that reads from a bytes array. Buffer - The bytes array. StartOffset - First byte will be read from this offset. Length - Number of bytes to expose to the stream.
Reads bytes to the stream and writes them to the buffer. Returns the number of bytes read. Buffer - Data will be written to this buffer. StartOffset - The first byte will be written at this offset. MaxCount - Maximum number of bytes to read.
TagAsObject
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.