FileUtils
public static utils.FileUtilsMethod Implementations
public static void EnsurePath(string path, FileAttributes pathType = FileAttributes.NotContentIndexed)
- parameters:
<string> path - The filepath to dump the data into.
<FileAttributes> pathType - Whether the path is a file or directory. If not specified, it will be automatically determined. This parameter accepts either a FileAttributes.Directory or FileAttributes.Normal type.
public static void DumpToFile(string path, List<string> data)
- parameters:
<string> path - The filepath to dump the data into.
<List<string>> data - A List containing the lines to write into the file.
public static void AppendToFile(string path, string data)
- parameters:
<string> path - The filepath to dump the data into.
<string> data - A string containing the line to write into the file.
public static List<string> ReadFromFile(string path)
- parameters:
<string> path - The filepath to dump the data into.
- returns:
<List<string>> A list containing all the lines in the file
public static void DumpToFileBinary(string path, List<string> data)
- parameters:
<string> path - The filepath to dump the data into.
<List<string>> data - The primitive values to write into the file.
public static List<string> ReadFromFileBinary(string path)
- parameters:
<string> path - The filepath to dump the data into.
- returns:
<List<string>> The primitive values in a list of strings