CopyBytes seems like a normal program, but it actually represents a kind of low-level I/O that you should avoid. Since xanadu.txt contains character data, the best approach is to use character streams, as discussed in the next section. There are also streams for more complicated data types. Byte streams should only be used for the most primitive I/O.
abalfazl hossein wrote:
This is for chat stream:
abalfazl hossein wrote:
streams are pockets that cross through network.stream is a stream
abalfazl hossein wrote:I want to know what happened when we use FileWriter ,e can use stream as char?
char: The char data type is a single 16-bit Unicode character.
byte: The byte data type is an 8-bit
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
CopyBytes seems like a normal program, but it actually represents a kind of low-level I/O that you should avoid. Since xanadu.txt contains character data, the best approach is to use character streams, as discussed in the next section. There are also streams for more complicated data types. Byte streams should only be used for the most primitive I/O.