return result; dataFile.close();
Don't you get a compiler warning because you have code that will never be reached?