From 6d5ca8e45353dcb4c530c4eed20290a806f7348d Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 30 Dec 2017 03:01:42 +0000 Subject: [PATCH] A little script for hex-dumping data files. --- exec/hexdump.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 exec/hexdump.js diff --git a/exec/hexdump.js b/exec/hexdump.js new file mode 100644 index 0000000000..397500f087 --- /dev/null +++ b/exec/hexdump.js @@ -0,0 +1,20 @@ +// $Id$ + +load("hexdump_lib.js"); + +function main() +{ + var i; + + for(i=0; i < argv.length; i++) { + var file = new File(argv[i]); + if(!file.open("rb")) + alert(file.name + " open error " + file.error); + else { + hexdump_file(file); + file.close(); + } + } +} + +main(); \ No newline at end of file -- GitLab