Interface IPlatformFileHelper
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public interface IPlatformFileHelper
Methods
AppendLineToFileString(PlatformFilePath, string)
SaveResult AppendLineToFileString(PlatformFilePath path, string data)
Parameters
path
PlatformFilePathdata
string
Returns
DeleteFile(PlatformFilePath)
bool DeleteFile(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
FileExists(PlatformFilePath)
bool FileExists(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
GetError()
string GetError()
Returns
GetFileContent(PlatformFilePath)
byte[] GetFileContent(PlatformFilePath filePath)
Parameters
filePath
PlatformFilePath
Returns
- byte[]
GetFileContentString(PlatformFilePath)
string GetFileContentString(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
GetFileContentStringAsync(PlatformFilePath)
Task<string> GetFileContentStringAsync(PlatformFilePath path)
Parameters
path
PlatformFilePath
Returns
GetFileFullPath(PlatformFilePath)
string GetFileFullPath(PlatformFilePath filePath)
Parameters
filePath
PlatformFilePath
Returns
GetFiles(PlatformDirectoryPath, string)
PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern)
Parameters
path
PlatformDirectoryPathsearchPattern
string
Returns
SaveFile(PlatformFilePath, byte[])
SaveResult SaveFile(PlatformFilePath path, byte[] data)
Parameters
path
PlatformFilePathdata
byte[]
Returns
SaveFileAsync(PlatformFilePath, byte[])
Task<SaveResult> SaveFileAsync(PlatformFilePath path, byte[] data)
Parameters
path
PlatformFilePathdata
byte[]
Returns
SaveFileString(PlatformFilePath, string)
SaveResult SaveFileString(PlatformFilePath path, string data)
Parameters
path
PlatformFilePathdata
string
Returns
SaveFileStringAsync(PlatformFilePath, string)
Task<SaveResult> SaveFileStringAsync(PlatformFilePath path, string data)
Parameters
path
PlatformFilePathdata
string
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).