mudgangster

Tiny, scriptable MUD client
Log | Files | Refs

bin2arr.lua (149B)


      1 local i = 0
      2 for c in io.stdin:lines( 1 ) do
      3 	if i > 0 and i % 16 == 0 then
      4 		print()
      5 	end
      6 	i = i + 1
      7 	io.stdout:write( string.byte( c ) .. "," )
      8 end