示例#1
0
    public static string Read(string path)
    {
        string result = "";

        #if UNITY_WINRT && !UNITY_EDITOR
        byte[] bytes = File.ReadAllBytes(path);
        result = System.Text.Encoding.UTF8.GetString(bytes, 0, bytes.Length);
        #else
        result = File.ReadAllText(path);
        #endif

        return(result);
    }