Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ReadFileMain {
- public static void main(String args[]) {
- ReadFile readOb = new ReadFile();
- boolean fileExist = readOb.openFile();
- if(fileExist) {
- readOb.countLine();
- readOb.countWord();
- readOb.countChar();
- readOb.closeFile();
- } else {
- System.out.println("That file doesn't exist.");
- }
- }
- }
Add Comment
Please, Sign In to add comment