C# Class Encog.Persist.Location.FilePersistence

A persistence location based on a file.
Inheritance: IPersistenceLocation
显示文件 Open project: encog/encog-silverlight-core

Public Methods

Method Description
CreateStream ( FileMode mode ) : Stream

Create a stream to a access the file.

Delete ( ) : void

Attempt to delete the file.

Exists ( ) : bool

Does the file exist?

FilePersistence ( String file ) : System

Construct a persistance location based on a file.

RenameTo ( IPersistenceLocation toLocation ) : void

Rename this file to a different location.

Method Details

CreateStream() public method

Create a stream to a access the file.
public CreateStream ( FileMode mode ) : Stream
mode FileMode
return Stream

Delete() public method

Attempt to delete the file.
public Delete ( ) : void
return void

Exists() public method

Does the file exist?
public Exists ( ) : bool
return bool

FilePersistence() public method

Construct a persistance location based on a file.
public FilePersistence ( String file ) : System
file String The file to use.
return System

RenameTo() public method

Rename this file to a different location.
public RenameTo ( IPersistenceLocation toLocation ) : void
toLocation IPersistenceLocation What to rename to.
return void