Run the I/O handler with command line argument

Java:  

        javac ReadDB.java

        java ReadDB db.txt
C++:  

        complie ReadDB.cpp and generate ReadDB.exe
        ReadDB db.txt

The output is like:

StudentNumber: 1941     LastName: Begala     Grade: 15
StudentNumber: 1838     LastName: Cox        Grade: 20
StudentNumber: 8218     LastName: Detavid    Grade: 38
StudentNumber: 1656     LastName: Ferm       Grade: 19
StudentNumber: 2375     LastName: Grelfrey   Grade: 34
StudentNumber: 8914     LastName: Hacase     Grade: 26
StudentNumber: 8161     LastName: Hamrager   Grade: 32
StudentNumber: 2006     LastName: Huan       Grade: 16
StudentNumber: 2638     LastName: Hunes      Grade: 38
StudentNumber: 3093     LastName: Janeran    Grade: 15
StudentNumber: 3160     LastName: Kem        Grade: 30
StudentNumber: 1095     LastName: Lanosart   Grade: 30
StudentNumber: 4559     LastName: Mainrig    Grade: 23
StudentNumber: 4534     LastName: Nguhan     Grade: 32
StudentNumber: 2105     LastName: Ngyeng     Grade: 32
StudentNumber: 1785     LastName: Nimo       Grade: 21
StudentNumber: 4057     LastName: Nunji      Grade: 32
StudentNumber: 3268     LastName: Plateau    Grade: 38
StudentNumber: 4628     LastName: Ram        Grade: 20
StudentNumber: 8464     LastName: Readel     Grade: 22
StudentNumber: 2096     LastName: Rick       Grade: 34
StudentNumber: 4823     LastName: Ruben      Grade: 34
StudentNumber: 3104     LastName: Schlitz    Grade: 24
StudentNumber: 2609     LastName: Shell      Grade: 34
StudentNumber: 4430     LastName: Sidaneal   Grade: 33
StudentNumber: 2099     LastName: Tampe      Grade: 38
StudentNumber: 8453     LastName: Will       Grade: 35

sum of grades: 765