Phase 1 Language Basics + Advanced _1-3-Java language classes and senior _06-File IO streams _04 IO byte stream method _6_ output stream of bytes to write more bytes


The method of writing a plurality of bytes
to be representative of the display 100.49 148 txt represents 0 in



a plurality of bytes to write



two negative before a Chinese composition. -65 and -66

Byte array portion



The method of writing a string






Currently used encoding format is utf-8, utf-8 is a three-byte Chinese. Therefore, the above output 6 bytes Hello


GBK two bytes are a character


 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11267119.html