File Handling
Methods
of outstream
|
|
Public void write(int){…}
|
is used
to write a byte to the current output stream.
|
|
|
Public void write( byte[]){}
|
is
used to write an array of byte to the current output stream.
|
|
|
Public void flush()
|
flushes
the current output stream.
|
|
|
Public void close()
|
is used to close the current output stream. |
Methods
of input
|
stream
|
Public void read(int){…}
|
reads
the next byte of data from the input stream. It returns -1 at the end of
file.
|
|
|
Public void read( byte[]){}
|
returns
an estimate of the number of bytes that can be read from the current input
stream.
|
|
|
Public void flush()
|
|
|
|
Public void close()
|
is
used to close the current input stream.
|
No comments:
Post a Comment