2.IO Operations
2.IO Operations
Console Operations
2 File Operations
• BufferedReader(Reader inputReader)
• InputStreamReader(InputStream inputStream)
package m10.io;
import java.io.*;
class CopyFile{
try{
fin = new FileInputStream(args[0]);
}
catch(FileNotFoundException e){
System.out.println("File Not Found");
return;
}
Why can’t we use FileReader and FileWriter here?