I think you can work with the String.substring() method, here's a little 
example of how it works.

           
> 
> i'm new in java .. and i need some topic for create a little programm
> i need to formating a file for insert in a database: (/var/log/message)
> 
> 
>   before
>   Apr 26 14:54:39 ****** kernel: PPP: ppp line discipline successfully 
unregistered
>   Apr 26 15:04:17 ****** PAM_pwdb[261]: (login) session closed for user john
> 
>   after - but in different file <message.db>
>   'Apr 26' '14:54:39' '******' '... rest of message'
>   'Apr 26' '15:04:17' '******' '... rest if message'
> 
> thank!
> 
> DANIEL
> 
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

TestString.java

Reply via email to