You can use some character to separate each of the categories
Such as:



Smith#John#3.7#Computer Science#Mr. Jones


Then you can just get the whole line and split it up at each # character