The File Class
The File Class
Constructor:
public File(String)
Example:
Constructors:
Constructor:
1. public BufferedReader(Reader)
Method:
Code:
Methods:
Constructors:
This class is also the derived class of Writer but has got
"print( )" and "println( )" methods, just like System.out.
These methods are overloaded and can accept any kind of argument
and write it in the file.
Thus as a programmer we don't have to convert these values into Strings.
1. public PrintWriter(String)
2. public PrintWriter(File)
3. public PrintWriter(Writer)