Correct! But if you would like to read elements(String) within a line, you need the StringTokenizer. It can break the line into elements (Strings), check the API for details.
Good luck!
David
Yes, you got it.
As what you stated, java works like this:
1,
For input:
FileInputStream fis = new FileInputStream(f1)
or
FileInputStream fis = new
FileInputStream(¡°C:\\dir\\myfile¡±);
Attempts to open the file; may throw a FileNotFoundException
DataInputStream dis = new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.