I am trying to check if a log file is empty (meaning no errors) or not, in Java, on Windows. I have tried using 2 methods so far.
Method 1 (Failure)
Try FileReader, this reader is meant to read stream of character, while FileInputStream is meant to read raw data.
From the Javadoc:
FileReader is meant for reading streams of characters. For reading streams of raw bytes, consider using a FileInputStream.
Since you wanna read a log file, FileReader is the class to use IMO.