BSD style: see
license.txt
Mar 2005: Initial release
Feb 2007: No longer a proxy subclass
Kris
- class File ¶#
-
A wrapper atop of FileConduit to expose a simpler API. This one
returns the entire file content as a void[], and sets the content
to reflect a given void[].
Method read() returns the current content of the file, whilst write()
sets the file content, and file length, to the provided array. Method
append() adds content to the tail of the file.
Methods to inspect the file system, check the status of a file or
directory and other facilities are made available via the associated
path (exposed via the path() method)
- this(char[] path) ¶#
-
Call-site shortcut to create a File instance. This
enables the same syntax as struct usage, so may expose
a migration path
- File opCall(char[] path) [static] ¶#
-
Call-site shortcut to create a File instance. This
enables the same syntax as struct usage, so may expose
a migration path
- void[] read() [final] ¶#
-
Return the content of the file.
- File write(void[] content) [final] ¶#
-
Set the file content and length to reflect the given array.
- File append(void[] content) [final] ¶#
-
Append content to the file.
- File write(void[] content, Conduit.File.Style style) [private] ¶#
-
Set the file content and length to reflect the given array.