Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read a logfile

Status
Not open for further replies.

swaroop

Programmer
Feb 4, 2001
100
0
0
US
I wanted to read a logfile line after line and cut the time in each line delimited by "^" and print to screan.

Contents of logfile:

20050711:06:46:14:670:EDT^hiBox01^CbsOrderUnlockV1^4069

Thanks in advance.

Swaroop.
 
See the Java API docs and read up on :

java.io.BufferedReader.
String.split() or StringTokenizer.

Or would you prefer us to write the code for you (I hope not) ?!



--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top