• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Text files

 
Balajipsg Raja
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!