D
Language
Phobos
Comparisons
object
std
std.base64
std.boxer
std.compiler
std.conv
std.ctype
std.date
std.file
std.format
std.gc
std.intrinsic
std.math
std.md5
std.mmfile
std.openrj
std.outbuffer
std.path
std.process
std.random
std.recls
std.regexp
std.socket
std.socketstream
std.stdint
std.stdio
std.cstream
std.stream
std.string
std.system
std.thread
std.uri
std.utf
std.zip
std.zlib
std.windows
std.linux
std.c
std.c.stdio
std.c.windows
std.c.linux
|
std.file
- class FileException: object.Exception;
- Exception thrown for file I/O errors.
- void[] read(char[] name);
- Read file name[], return array of bytes read.
- void write(char[] name, void[] buffer);
- Write buffer[] to file name[].
- void append(char[] name, void[] buffer);
- Append buffer[] to file name[].
- void rename(char[] from, char[] to);
- Rename file from[] to to[].
- void remove(char[] name);
- Delete file name[].
- ulong getSize(char[] name);
- Get size of file name[].
- int exists(char[] name);
- Does file name[] (or directory) exist?
Return 1 if it does, 0 if not.
- uint getAttributes(char[] name);
- Get file name[] attributes.
- int isfile(char[] name);
- Is name[] a file? Error if name[] doesn't exist.
- int isdir(char[] name);
- Is name[] a directory? Error if name[] doesn't exist.
- void chdir(char[] pathname);
- Change directory to pathname[].
- void mkdir(char[] pathname);
- Make directory pathname[].
- void rmdir(char[] pathname);
- Remove directory pathname[].
- char[] getcwd();
- Get current directory.
- char[][] listdir(char[] pathname);
- Return contents of directory pathname[].
- char* toMBSz(char[] s);
- Since Win 9x does not support the "W" API's, first convert
to wchar, then convert to multibyte using the current code
page.
(Thanks to yaneurao for this)
- void copy(char[] from, char[] to);
- Copy a file from[] to[].
|