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
applicationNamestring
Methods
AppendLineToFileString(PlatformFilePath, string)
public SaveResult AppendLineToFileString(PlatformFilePath path, string data)
Parameters
pathPlatformFilePathdatastring
Returns
CreateDirectory(PlatformDirectoryPath)
public void CreateDirectory(PlatformDirectoryPath path)
Parameters
DeleteFile(PlatformFilePath)
public bool DeleteFile(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
FileExists(PlatformFilePath)
public bool FileExists(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetError()
public string GetError()
Returns
GetFileContent(PlatformFilePath)
public byte[] GetFileContent(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
- byte[]
GetFileContentString(PlatformFilePath)
public string GetFileContentString(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetFileContentStringAsync(PlatformFilePath)
public Task<string> GetFileContentStringAsync(PlatformFilePath path)
Parameters
pathPlatformFilePath
Returns
GetFileFullPath(PlatformFilePath)
public string GetFileFullPath(PlatformFilePath filePath)
Parameters
filePathPlatformFilePath
Returns
GetFiles(PlatformDirectoryPath, string)
public PlatformFilePath[] GetFiles(PlatformDirectoryPath path, string searchPattern)
Parameters
pathPlatformDirectoryPathsearchPatternstring
Returns
RenameFile(PlatformFilePath, string)
public void RenameFile(PlatformFilePath filePath, string newName)
Parameters
filePathPlatformFilePathnewNamestring
SaveFile(PlatformFilePath, byte[])
public SaveResult SaveFile(PlatformFilePath path, byte[] data)
Parameters
pathPlatformFilePathdatabyte[]
Returns
SaveFileAsync(PlatformFilePath, byte[])
public Task<SaveResult> SaveFileAsync(PlatformFilePath path, byte[] data)
Parameters
pathPlatformFilePathdatabyte[]
Returns
SaveFileString(PlatformFilePath, string)
public SaveResult SaveFileString(PlatformFilePath path, string data)
Parameters
pathPlatformFilePathdatastring
Returns
SaveFileStringAsync(PlatformFilePath, string)
public Task<SaveResult> SaveFileStringAsync(PlatformFilePath path, string data)
Parameters
pathPlatformFilePathdatastring
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).