Terraria.Utilities.FileUtilities.ReadAllBytes C# (CSharp) Method

ReadAllBytes() public static method

public static ReadAllBytes ( string path ) : byte[]
path string
return byte[]
        public static byte[] ReadAllBytes(string path)
        {
            return File.ReadAllBytes(path);
        }

Usage Example

Ejemplo n.º 1
0
 public static bool MoveToLocal(string cloudPath, string localPath)
 {
     if (SocialAPI.Cloud == null)
     {
         return(false);
     }
     FileUtilities.WriteAllBytes(localPath, FileUtilities.ReadAllBytes(cloudPath, true), false);
     FileUtilities.Delete(cloudPath, true);
     return(true);
 }