ALE.FileSystem.File.ReadAllBytes C# (CSharp) Method

ReadAllBytes() public static method

public static ReadAllBytes ( string path, byte[]>.Action callback ) : void
path string
callback byte[]>.Action
return void
        public static void ReadAllBytes(string path, Action<Exception, byte[]> callback)
        {
            if (callback == null) throw new ArgumentNullException("callback");
            FileReadAllAsync(path, (ex, buffer) => EventLoop.Pend(() => callback(ex, buffer)));
        }