This should be so easy, I must be missing something obvious. Any help?
package com.codegym.task.task18.task1816;
import java.io.*;
/*
ABCs
*/
public class Solution {
public static void main(String[] args) throws Exception {
String fileName = args[0];
FileInputStream input = new FileInputStream(fileName);
int letterCount = 0;
int letter;
while (input.available() > 0){
letter = input.read();
if (Character.isLetter((char) letter))
letterCount = letterCount + 1;
}
input.close();
System.out.println(letterCount);
}
}