Function for parsing a txt file containing the UCI sonar data