Table of Contents

Interface IFile

Namespace
Amazon.Util.Internal
Assembly
AWSSDK.Core.dll

Wrapper class over File operations. This change was done for testability.

public interface IFile

Methods

Exists(string)

bool Exists(string path)

Parameters

path string

Returns

bool

ReadAllText(string)

string ReadAllText(string path)

Parameters

path string

Returns

string

ReadAllTextAsync(string, CancellationToken)

Task<string> ReadAllTextAsync(string path, CancellationToken token = default)

Parameters

path string
token CancellationToken

Returns

Task<string>

WriteAllText(string, string)

void WriteAllText(string path, string contents)

Parameters

path string
contents string

WriteAllTextAsync(string, string, CancellationToken)

Task WriteAllTextAsync(string path, string contents, CancellationToken token = default)

Parameters

path string
contents string
token CancellationToken

Returns

Task