User Code: ReaderFile

Friday Nov 9th 2001 by Michail Rakushin
Share:

Java user Rakushin offers this free contribution for searching for words in a file and printing just those lines where the word appears. He uses it for finding IP addresses in log files. Check it out.

This program searches for a word in a file and prints all lines where the word is found. I use the program to search IP-addresses or MAC-addresses in log files on Windows NT and UNIX (Solaris 8).

In line StringTokenizer st = new StringTok

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved