Writing a byte to a file
in
Programming Questions
•
3 years ago
Hi all,
I am trying to store data in a file, and would like to be able to write a series of bytes to it. However, using createWriter() and the print() method, it converts the bytes into ASCII (so rather than writing 0xAA to the file, it writes 0x31, 0x37, 0x30 - or '170' in ASCII). I'd be grateful if someone could tell me a way to write the raw data out rather than have it converted!
Many thanks!
Angus
1