www.digitalmars.com Home | Search | D | Comments
Last update Mon Aug 22 2005
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
Exception thrown if 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 copy(char[] from, char[] to)
Copy file from[] to to[].

void remove(char[] name)
Delete file name[].

uint getSize(char[] name)
Get size of file name[].

uint getAttributes(char[] name)
Get file name[] attributes.

int exists(char[] name)
Does name[] exist (file or directory)?

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[] name)
Change directory.

void mkdir(char[] name)
Make directory.

void rmdir(char[] name)
Remove directory.

char[] getcwd()
Get current directory.

char[][] listdir(char[] pathname)
Return contents of directory.

Feedback and Comments

Add feedback and comments regarding this page.
Copyright © 1999-2005 by Digital Mars, All Rights Reserved