heya,
i am not sure about the extension file type your talking about. but if the file looks like
column1, column2, column3 etc etc
then a
string tokenizer will definately do the trick. You say you have the code to open and read the file, so i am presuming this is through some sort of a loop construct -with a temporary string being used to get the value of readLine() or some such method.
so for the tokenizer part:
presuming 'input' is the string assigned to the readLine() method, in other words your temporary variable in your file reader loop..
For your purpose,
you should look into the nextToken() method. As you have described, you might be after the 3rd colomn of every line. So obviously you will pass through 2 tokens before reaching 'here':
token 1 , token 2 , HERE
so
tokenizer.nextToken();
will move the token that its 'pointing' to, one to the right. Obviously with each token being seperated by a delimiter commer.
hope this helps somewhat, below is a link to the StringTokenizer class from the java api.
http://java.sun.com/j2se/1.3/docs/api/java/util/StringTokenizer.html -twans
[ April 21, 2004: Message edited by: Antoine Waugh ]
[ edited to break long line -ds ]
[ April 21, 2004: Message edited by: Dirk Schreckmann ]