This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ETHANATOR360's profile picture

Getting binary data from a program

Started by ETHANATOR360, 03 February 2013 - 05:01 AM
ETHANATOR360 #1
Posted 03 February 2013 - 06:01 AM
Is there a way to get the binary code of a program
tesla1889 #2
Posted 03 February 2013 - 06:04 AM

bytecode = string.dump(loadfile("filepath"))

or, if your program is already loaded as a function:

bytecode = string.dump(program_function)
ETHANATOR360 #3
Posted 03 February 2013 - 09:26 AM
Thanks