Parsing a test file  
Author Message
mbokhari





PostPosted: 2004-2-6 7:58:00 Top

java-programmer, Parsing a test file I'm pretty new to Java and have been assigned to parse a log file.
The file is tab delimited. I have several tokens that I need to look
for. I have to find all the rows that have "290" then check a column
within that row. That value must match a pattern. The pattern will be
stored in a db table, so the user can add muliple patterns. That item
will then be placed in a new file.

A good example would be awesome.

Thanks.
 
Tony Morris





PostPosted: 2004-2-6 8:07:00 Top

java-programmer >> Parsing a test file
"Michael B" <email***@***.com> wrote in message
news:email***@***.com...
> I'm pretty new to Java and have been assigned to parse a log file.
> The file is tab delimited. I have several tokens that I need to look
> for. I have to find all the rows that have "290" then check a column
> within that row. That value must match a pattern. The pattern will be
> stored in a db table, so the user can add muliple patterns. That item
> will then be placed in a new file.
>
> A good example would be awesome.
>
> Thanks.

http://java.sun.com/docs/books/tutorial/essential/io/index.html

@see java.util.StringTokenizer

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)