DataInputStream is an input stream that contains methods for reading the java standards data types.
DataOutputStream is an output stream that contains methods for methods for writing the java standard data types.
DataInputStream extends FilterInputStream, which extends InputStream, and it implements the DataInput interface.
Constructor: DataInputStream(InputStream is)
DataInputStream Methods :
DataOutputStream extends filterOutputStream, which extends outputstream.
Constructor: dataoutputstream(outputstream is)
DataOutputStream Methods :
Enter the file name:
In this program , we demonstrate that counting the lines , words , characters of a file. Here in this program we take a
THINGS TO TRY
if u don’t place a null character in LINE A i.e.,
it shows an error called
check out this.