1. add self-defined exception and change all my own exception to it;
2. instead of readlines(), use for line in hFile;
3. add parameters to configure starIndex and endIndex;