Static Public Member Functions | |
static FString | JoinPaths (const FString &A, const FString &B) |
Joins the given paths and ensures the path is valid. More... | |
static FString | LoadFileToString (const FString &Path, bool &Success) |
Loads a file at the given path to a string. More... | |
static TArray< FString > | LoadFileToStringArray (const FString &Path, bool &Success) |
Loads a file at the given path to an array of strings, one for each line. More... | |
static void | WriteStringToFile (const FString &Path, const FString &Contents, bool &Success) |
Writes a string to a file. More... | |
static void | WriteStringArrayToFile (const FString &Path, const TArray< FString > &Contents, bool &Success) |
Writes an array of strings to a file, separated by newlines. More... | |
static void | DeleteFile (const FString &Path, const bool RequireExists, const bool EvenReadOnly, bool &Success) |
Tries to delete a file. More... | |
|
static |
Tries to delete a file.
Path | Path to the file to delete. |
RequireExists | If true, Success = false if the file didn't already exist. |
EvenReadOnly | Will only delete read-only files if this is true. |
Success | True if the file was deleted successfully. |
|
static |
Joins the given paths and ensures the path is valid.
Ensures that / is between the two paths, normalizes \\ to /, and removes redundant slashes.
A | Left path operand |
B | Right path operand |
|
static |
Loads a file at the given path to a string.
Path | Path to the file. |
Success | True if the file was read successfully. |
|
static |
Loads a file at the given path to an array of strings, one for each line.
Path | Path to the file. |
Success | True if the file was read successfully. |
|
static |
Writes an array of strings to a file, separated by newlines.
Path | Path to the file. |
Contents | The string array to write. |
Success | True if the file was written to successfully. |
|
static |
Writes a string to a file.
Path | Path to the file. |
Contents | The string to write. |
Success | True if the file was written to successfully. |