const OPEN_INPUT = 256;
const OPEN_OUTPUT = 512;
String basename String filename without-extension: String ext = nil;
filenameremoving any directory component, and removing the extension
extif it matches and is not
void set_current_directory String directory;
directory. This raises a
file-errorwhen problems arise.
String directory-of-file String name;
String expand-filename String filename relative-to: String directory = nil;
filenamerelative to the
nil, expansion is relative to the current working directory.
String express-filename String filename relative-to String directory;
filenamein terms relative to the
String filename-as-directory String filename;
filenameas the name of a directory.
MutableArray filenames-in-directory String dir_name;
String locate-file String file along-path Indexed path;
filesomewhere along the
nilif it could not be found.
boolean file-exists String name;
YESiff the file with the
int type-of-file String name follow-link: boolean follow_link = YES;
instance (id) open String name input: boolean input_p = FALSE output: boolean output_p = FALSE flags: int action = 0;
instance (id) open String name alongPath Indexed path subdir: String subdir1 = nil subsubdir: String subdir2 = nil;
For the subdirectories
subdir2, when not nil, the
following attempts are made for a
dir in the
void remove String name;
public String name;
protected id init String n flags int f;
FILE_TYPE_*constants for the receiving File. If the file is not open, the file is tested as if the file were open, i.e. following links.
OutputStream writeFields OutputStream s;
void seek long offset relative: int whence = STREAM_SEEK_SET;