The File class offers an abstraction from files in the filesystem.
Return the filename removing any directory component, and removing the extension ext if it matches and is not nil.
Return the current directory, as a directory name (tailing slash).
void set_current_directory String directory;
Set the current directory. This raises a file-error when problems arise.
Return the directory-name of the directory containing the file named filename.
Expand the filename relative to the directory. If directory is nil, expansion is relative to the current working directory.
Express the filename in terms relative to the directory.
Return the filename as the name of a directory.
MutableArray filenames-in-directory String dir_name;
Return the filenames in the directory named dir_name.
Return the filename of the file somewhere along the path. Return nil if it could not be found.
boolean file-exists String name;
Return YES iff the file with the name exists.
int type-of-file String name follow-link: boolean follow_link = YES;
Return one of the FILE_TYPE_* constants.
instance (id) open String name input: boolean input_p = FALSE output: boolean output_p = FALSE flags: int action = 0;
Return a new File.
Search for the file along the path.
For the subdirectories subdir1 and subdir2, when not nil, the following attempts are made for a dir in the path: dir, dir/subdir2, dir/subdir1, and dir/subdir1/subdir2.
void remove String name;
Remove the file or directory with the name.
The name of the file.
If it is to be reopenend, these are the flags indicating how to do so.
protected id init String n flags int f;
Return the name of the directory containing our file.
Reopen the file according to the flags.
Return one of the 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;
Return the length of the file.
Return the current file position.
void seek long offset relative: int whence = STREAM_SEEK_SET;
Position the file `pointer'.