-
Notifications
You must be signed in to change notification settings - Fork 29
File System
xg_55 edited this page Nov 8, 2016
·
1 revision
public static string ReadAllText(string Path)
{
byte[] data = null;
if(UnrealEngine.IFileManager.ReadAllBytes(Path, out data)>0)
{
UnrealEngine.UObject.LogInfo("Read Data Size {0}", data.Length);
return System.Text.Encoding.UTF8.GetString(data);
}
else
{
UnrealEngine.UObject.LogInfo("ReadAllText Failed " + Path);
return "";
}
}
public static string GetGameContentDir()
{
return FPaths.GameContentDir();
}