Opens a file stored on the local filesystem for writing.
constructor Create(const Owner: TAgkObject; const Filename: String; const Append: Boolean);
Parameters |
Description |
const Owner: TAgkObject |
the owner of the file writer (eg. a TAgkScene object). |
const Filename: String |
The filename to open for writing. |
const Append: Boolean |
Set to True to append to the file, False to overwrite all data. |
All platforms are restricted to a single folder for writing so file paths must be relative, not absolute. This write folder is not the same folder as the application itself, so images, sounds, and the application itself cannot be overwritten. Files written to this folder can be read using TAgkFileReader. If the file does not exist it will be created. If the file does exist it will be overwritten if Append is False, or appended to if Append is True. If a directory is given in the filename and does not exist it will be created.
TAgkFileWriter
Copyright (c) 2012. All rights reserved.
|