View Single Post
  #17 (permalink)  
Old 04-21-2008, 06:21 PM
karthik7974 karthik7974 is offline
Member
 
Join Date: Apr 2008
Location: singapore
Posts: 7
karthik7974 is on a distinguished road
Send a message via Yahoo to karthik7974
Hi Don,

Thanks for your help,
I tried your code too. Initially got an error. u did not declare deleteMe.
I declared and it was compiled with no errors.

But can see only empty output.txt

i received OUCH! I Fell Over.

I think my request in this forum is not clear, maybe.
I will clear it now.

The code i posted is working fine. but works for one string at a time.

But my request is to send the line to output file only if the below condition is true

Enter Log File : Input.txt
Enter String : 10/10/2008,server1,xxx.xxx.xxx.xxx
Enter Output File : Output.txt

only if 10/10/2008,server1,xxx.xxx.xxx.xxx (ip address) these 3 strings are in a line then that line has to be send to output.

but all your replies satisfies either one of the 3 string in a line was sent to output file

I want an output file in which all the 3 strings are in the same line.

Can you help.

Hi Eranga,
I am not familiar with java basics, but a little knowledge with scripting.
I own a forum too www(dot)karthik(dot)sg/MyForum/

but not enough time to develop my programming skills
R U OK to teach me online.

I am ready to help your forum with any pace, like answering unix+java related questions and even something else.


Hi Webmaster,
Please edit any words exceed your terms & conditions. Sorry if so. I really mean to express my good will to all.

Thanks to all.
Reply With Quote