function read_binary(path/*:string*/) {
	if(typeof _fs !== 'undefined') return _fs.readFileSync(path);
	// $FlowIgnore
	if(typeof $ !== 'undefined' && typeof File !== 'undefined' && typeof Folder !== 'undefined') try { // extendscript
		// $FlowIgnore
		var infile = File(path); infile.open("r"); infile.encoding = "binary";
		var data = infile.read(); infile.close();
		return data;
	} catch(e) { if(!e.message || !e.message.match(/onstruct/)) throw e; }
	throw new Error("Cannot access file " + path);
}
function read_binary(path/*:string*/) {
	if(typeof _fs !== 'undefined') return _fs.readFileSync(path);
	// $FlowIgnore
	if(typeof $ !== 'undefined' && typeof File !== 'undefined' && typeof Folder !== 'undefined') try { // extendscript
		// $FlowIgnore
		var infile = File(path); infile.open("r"); infile.encoding = "binary";
		var data = infile.read(); infile.close();
		return data;
	} catch(e) { if(!e.message || !e.message.match(/onstruct/)) throw e; }
	throw new Error("Cannot access file " + path);
}
function read_binary ( path /*:string*/ ) { if ( typeof _fs !== 'undefined' ) return _fs . readFileSync ( path ) ; // $FlowIgnore if ( typeof $ !== 'undefined' && typeof File !== 'undefined' && typeof Folder !== 'undefined' ) try { // extendscript // $FlowIgnore var infile = File ( path ) ; infile . open ( "r" ) ; infile . encoding = "binary" ; var data = infile . read ( ) ; infile . close ( ) ; return data ; } catch ( e ) { if ( ! e . message || ! e . message . match ( / onstruct / ) ) throw e ; } throw new Error ( "Cannot access file " + path ) ; }
/* read binary data from file
/ * read binary data from file
read binary file