I have a GUI program that I'm using to navigate a text file. It's nothing too complex, just the ability to browse the file and add new information to it. However I would also like to be able to identify the first line in the text file, as well as the last. Basically if I have a text file that looks like this: 

* California, West, 1981, 115, 25.99
* New York, East, 1991, 120, 19.95

I wish to, when a button is pushed saying first - the text California comes up, identifying the first line in the text. But I just want California to display, not the rest of the info on the first line. I wish to do this for the last line to, in the same style. 

I'm using the FileReader and FileBuffer with StringTokenizer. Is there a way of just calling the first token of the first line and the first token of the last line? Thanks for the help!