Esempio n. 1
0
        public static string Read(string absFilePath)
        {
            string result;

            try
            {
                result = StorageUtility.FileReadAllText(absFilePath);
            }
            catch (Exception)
            {
                throw new Exception("Failed to read file: " + absFilePath);
            }
            return(result);
        }
Esempio n. 2
0
 public unsafe static long $Invoke28(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.FileReadAllText(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }