Interface IFileIO

Namespace
CodeSmile.AnyMotion.Core.SaveLoad
/
Assembly
ApiSource.dll

Reads and writes preset text at a file path. Knows nothing about JSON or ScriptableObjects, so it can be swapped or mocked independently of both.

public interface IFileIO
Expand Details ...

Methods

Exists(string)

bool Exists(string filePath)

Parameters

Type Name Description
string
filePath

Returns

bool

ReadAllText(string)

string ReadAllText(string filePath)

Parameters

Type Name Description
string
filePath

Returns

string

WriteAllText(string, string)

void WriteAllText(string filePath, string contents)

Parameters

Type Name Description
string
filePath
string
contents