Bug fixed, I accidently decleared the car t twice, and missing the t = textFile.get(); line in else block