Home Notices Documents Classes Download Others Rice
Classes  >  file
file class

Description

Provides the function to manipulate a file.

Notes

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

This class is distributed as Rtype.File.dll.

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

DLL

Rtype.File.dll

fitter

SignatureDescription
file()

Get a new instance of file class.

file(string)

Gets an instance of the file class that has been initialized by the path to the file.

getter

SignatureDescription
CreationTime

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

Directory

Gets an instance of the directory class that is the parent of the file.

DirectoryName

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

Exists

Gets a value that indicates whether the file is exist.

Extension

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

Fitted

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

FullName

Gets a full path of the file.

IsReadOnly

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

LastAccessTime

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

LastWriteTime

Gets a 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 a string that indicates 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 a string that indicates the date and time when the file was last accessed.

LastWriteTime(string)

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

method

SignatureDescription
CopyTo(string)

Copies a file.

CopyTo(string,bool)

Copies a file.

Create()

Creates a file.

Delete()

Deletes a file.

MoveTo(string)

Moves a file to a new location.

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.