There are two types of stream:text and binary.A text stream is used with characters. When a text stream is being used, some character translations may take place. For example,when the newline character is output,it may be converted into a carriage return-linefeed sequence.For this reason,there might not be a one-to-one correspondence between what is sent to the stream and what is written to the file. A binary stream can be used with any type of data.No character translations will occur,and there is a one-to-one correspondence between what is sent to the stream and what is actually contained in the file.
浙公网安备 33010602011771号