Refactored method ReadFileUtils.readFromFile() and wrote some unit
tests.