That's because writefloat, writebyte, writeint, and writeshort do just that, write down a byte*
When you open the file, you're seeing the ascii representation of the characters in the bytes. Try out writeline. That will write out a string of text + a line break character.
Each one of the letters in this reply are bytes, the value being set by the keyboard output.
*- short = 2 bytes, int = 4 bytes, float = 4 bytes
When you open the file, you're seeing the ascii representation of the characters in the bytes. Try out writeline. That will write out a string of text + a line break character.
Each one of the letters in this reply are bytes, the value being set by the keyboard output.
*- short = 2 bytes, int = 4 bytes, float = 4 bytes