SyntaxFix
Write A Post
Hire A Developer
Questions
i = Your_int_value
Write bytes value like this for example:
the_file.write(i.to_bytes(2,"little"))
Depend of you int value size and the bit order your prefer