#TODO => indentation 
data = open(ARGV[1],'r').read()
o = ""
case ARGV[0]
when /^cstr/
  puts '"\\x' + data.bytes.map{ |x| "%.2x"%x }.join("\\x") + '"'
when /^list/
  puts "[" + data.bytes.map{ |x| "0x%.2x"%x }.join(", ") + ']'
when /^hex/
  puts data.bytes.map{ |x| "%.2x"%x }.join(" ")
end
