/// <summary> /// Opens a binary file, reads all content of the file, and then closes the file /// </summary> /// <param name="path">The file to open for reading</param> /// <returns>The byte array containing all content of the file</returns> public byte[] ReadBinaryFile(string path) { if (path == null) { throw new ArgumentNullException("path", string.Format(CoreStrings.Common_ArgumentIsNull, "path")); } byte[] bytes = _virtualFileSystemWrapper.GetFileBinaryContent(path); return(bytes); }