Table of Contents

Interface IPlatformFileHelper

Namespace
TaleWorlds.Library
Assembly
TaleWorlds.Library.dll
public interface IPlatformFileHelper

Methods

AppendLineToFileString(PlatformFilePath, string)

SaveResult AppendLineToFileString(PlatformFilePath path, string data)

Parameters

path PlatformFilePath
data string

Returns

SaveResult

DeleteFile(PlatformFilePath)

bool DeleteFile(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

bool

FileExists(PlatformFilePath)

bool FileExists(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

bool

GetError()

string GetError()

Returns

string

GetFileContent(PlatformFilePath)

byte[] GetFileContent(PlatformFilePath filePath)

Parameters

filePath PlatformFilePath

Returns

byte[]

GetFileContentString(PlatformFilePath)

string GetFileContentString(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

string

GetFileContentStringAsync(PlatformFilePath)

Task<string> GetFileContentStringAsync(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

Task<string>

GetFileFullPath(PlatformFilePath)

string GetFileFullPath(PlatformFilePath filePath)

Parameters

filePath PlatformFilePath

Returns

string

GetFiles(PlatformDirectoryPath, string)

PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern)

Parameters

path PlatformDirectoryPath
searchPattern string

Returns

PlatformFilePath[]

SaveFile(PlatformFilePath, byte[])

SaveResult SaveFile(PlatformFilePath path, byte[] data)

Parameters

path PlatformFilePath
data byte[]

Returns

SaveResult

SaveFileAsync(PlatformFilePath, byte[])

Task<SaveResult> SaveFileAsync(PlatformFilePath path, byte[] data)

Parameters

path PlatformFilePath
data byte[]

Returns

Task<SaveResult>

SaveFileString(PlatformFilePath, string)

SaveResult SaveFileString(PlatformFilePath path, string data)

Parameters

path PlatformFilePath
data string

Returns

SaveResult

SaveFileStringAsync(PlatformFilePath, string)

Task<SaveResult> SaveFileStringAsync(PlatformFilePath path, string data)

Parameters

path PlatformFilePath
data string

Returns

Task<SaveResult>

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).