This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JavaFX and the fly likes Reading Text files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Reading Text files" Watch "Reading Text files" New topic
Author

Reading Text files

Balajipsg Raja
Greenhorn

Joined: Nov 10, 2009
Posts: 2
Hi,
Please guide me
My requriment is to display Null pointer Exception and Log Entry Lines.I displayed null pointer exception using
below coding .


Text Files Look Like:

Log Entry-- Date and Time

Excpetion: Null pointer Exception

Log Entry-- Date and Time



--->1 Line Log Entry-- Date and Time
---> 2
--->3 Line Line Excpetion: Stack overflow exception
---> 4
--->5 Line Log Entry-- Date and Time



Log Entry-- Date and Time

Excpetion: Null pointer Exception

Log Entry-- Date and Time.



while(stringvalue=reading line by line!=null )
{
if(stringvalue.contains("Null pointer Exceptions"))
{
S.O.P(stringvalue);
}
}

How to Display Log entry and Null pointer Exception Log Entry Lines


Thanks
 
 
subject: Reading Text files
 
Similar Threads
Portal 10.2 Deployment -- mdimport Error
Catching a NullPointerException
SCJP Brainteaser (2)
StringTokenizer Class......
problem in running exec() from servlet