2010年4月2日 星期五

The I/O package

1. java.io define I/O (input/output) in terms of stream
2. Streams are ordered sequence of data that have a source or destination
3. The java.io has two major part: character streams and bytes stream


04.01
我碰到, 可以建立 一個 byte outputstream 並將它輸出 file outputstram, 而寫法為
FileOutputStream fout = new FileOutputStream("FBJ");
bjectOutputStream oout = new ObjectOutputStream(fout);

沒有留言:

張貼留言