C# Class BudgetAnalyser.Engine.Persistence.LocalDiskReaderWriter

Inheritance: IFileReaderWriter
显示文件 Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
CreateWritableStream ( string fileName ) : Stream

Creates a writable stream to write data into. This is an alternative to IFileReaderWriter.WriteToDiskAsync

FileExists ( string fileName ) : bool
LoadFirstLinesFromDiskAsync ( string fileName, int lineCount ) : Task
LoadFromDiskAsync ( string fileName ) : Task
WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task

Method Details

CreateWritableStream() public method

Creates a writable stream to write data into. This is an alternative to IFileReaderWriter.WriteToDiskAsync
public CreateWritableStream ( string fileName ) : Stream
fileName string Full path and filename of the file.
return Stream

FileExists() public method

public FileExists ( string fileName ) : bool
fileName string
return bool

LoadFirstLinesFromDiskAsync() public method

public LoadFirstLinesFromDiskAsync ( string fileName, int lineCount ) : Task
fileName string
lineCount int
return Task

LoadFromDiskAsync() public method

public LoadFromDiskAsync ( string fileName ) : Task
fileName string
return Task

WriteToDiskAsync() public method

public WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task
fileName string
data string
return System.Threading.Tasks.Task