Home Cooker Classes Others Rice CookerGX
Classes  >  file
file class

Description

Provides the function to manipulate a file.

Notes

It is a class that is dynamically embedded when the Cooker runs.

This class is distributed as Rtype.File.dll.

The dll file is in the dlls directory in the Cooker's distribution archive.

fitter

SignatureDescription
file()

Get a new instance of file class.

file(string)

Return a file type instance that is initialized by the path to the file.

getter

SignatureDescription
CreationTime

Gets the string that indicates the date and time when the file was created.

Directory

Gets a directory instance that is the parent of the file.

DirectoryName

Gets a string that represent the absolute path of the parent directory.

Exists

Gets the value that indicates whether the file is exist.

Extension

Gets a string that represent the extension part of the file.

Fitted

Gets the value that indicates whether this instance was already initialized.

FullName

Gets the full path of the file.

IsReadOnly

Gets a value that indicates whether the file is read only.

LastAccessTime

Gets the string that indicates the date and time when the file was last accessed.

LastWriteTime

Gets the string that indicates the date and time when the file was last written to.

Length

Gets the size of the file.

Name

Gets a name of the file.

TypeName

Gets the type name.

setter

SignatureDescription
CreationTime(string)

Sets the date and time when the file was created.

IsReadOnly(bool)

Sets a value that indicates whether the file is read only.

LastAccessTime(string)

Sets the date and time when the file was last accessed.

LastWriteTime(string)

Sets the date and time when the file was last written to.

method

SignatureDescription
CopyTo(string)

Copy the file to a new file.

CopyTo(string,bool)

Copy the file to a other file.

Create()

Create a file.

Delete()

Deletes the file.

MoveTo(string)

None.

Refresh()

Refreshes the state of the invoker.

Download.

Please download the file and directory class ( Rtype.File.dll ) from the link below.

Please download the source of the file and directory class from the link below.

The above .dll and source files are distributed as a self-extracting archive of 7z format.

Copyright © Rice All rights reserved.