I'm getting very odd behaviour when using file.write(variable) - what happens is that if I print out the variable using the print function I get this:
4CE1FFC64101843801 ... which is what I expect. However, when I try to write this to a file (using the variable 'valid' to write to object 'stamps') I get this:
4CE1FFC6410184381 This string above is what is written into the 'stamps' file.
The strange thing is that when it writes it basically removes the penultimate 0 and I can't figure out why. It should be noted that 'valid' is already converted to a string, i.e.:
valid = str("4CE1FFC64101843801")
Any ideas anyone?