Input
Output
>> javac Main.java
>> java Main
File [sample.txt] not found!
Invalid file provided!
Application terminated!