Example #1
0
        /// <summary>reads all the contents of the file at <paramref name="path"/></summary>
        /// <exception cref="FileNotFoundException">could not find <paramref name="path"/></exception>
        public static byte[] ReadAllBytes(string path)
        {
            using var file = new HawkFile(path);

            return(file.Exists ? file.ReadAllBytes() : throw new FileNotFoundException(path));
        }