Table of Contents

Class PlatformFileHelperPC

Namespace
TaleWorlds.Library
Assembly
TaleWorlds.Library.dll
public class PlatformFileHelperPC : IPlatformFileHelper
Inheritance
PlatformFileHelperPC
Implements
Inherited Members

Constructors

PlatformFileHelperPC(string)

public PlatformFileHelperPC(string applicationName)

Parameters

applicationName string

Methods

AppendLineToFileString(PlatformFilePath, string)

public SaveResult AppendLineToFileString(PlatformFilePath path, string data)

Parameters

path PlatformFilePath
data string

Returns

SaveResult

CreateDirectory(PlatformDirectoryPath)

public void CreateDirectory(PlatformDirectoryPath path)

Parameters

path PlatformDirectoryPath

DeleteFile(PlatformFilePath)

public bool DeleteFile(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

bool

FileExists(PlatformFilePath)

public bool FileExists(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

bool

GetError()

public string GetError()

Returns

string

GetFileContent(PlatformFilePath)

public byte[] GetFileContent(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

byte[]

GetFileContentString(PlatformFilePath)

public string GetFileContentString(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

string

GetFileContentStringAsync(PlatformFilePath)

public Task<string> GetFileContentStringAsync(PlatformFilePath path)

Parameters

path PlatformFilePath

Returns

Task<string>

GetFileFullPath(PlatformFilePath)

public string GetFileFullPath(PlatformFilePath filePath)

Parameters

filePath PlatformFilePath

Returns

string

GetFiles(PlatformDirectoryPath, string)

public PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern)

Parameters

path PlatformDirectoryPath
searchPattern string

Returns

PlatformFilePath[]

RenameFile(PlatformFilePath, string)

public void RenameFile(PlatformFilePath filePath, string newName)

Parameters

filePath PlatformFilePath
newName string

SaveFile(PlatformFilePath, byte[])

public SaveResult SaveFile(PlatformFilePath path, byte[] data)

Parameters

path PlatformFilePath
data byte[]

Returns

SaveResult

SaveFileAsync(PlatformFilePath, byte[])

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

Parameters

path PlatformFilePath
data byte[]

Returns

Task<SaveResult>

SaveFileString(PlatformFilePath, string)

public SaveResult SaveFileString(PlatformFilePath path, string data)

Parameters

path PlatformFilePath
data string

Returns

SaveResult

SaveFileStringAsync(PlatformFilePath, string)

public 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).