Results 1 to 2 of 2
  1. #1
    balaji csc is offline Member
    Join Date
    Nov 2009
    Posts
    10
    Rep Power
    0

    Default Reading Text File with Certain Conditions

    Hi,
    Pls 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

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    6

    Default

    So what is your problem?
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Reading Integers from a text file
    By tress in forum New To Java
    Replies: 6
    Last Post: 02-26-2011, 05:45 PM
  2. Reg: Reading Files from Text file
    By balaji csc in forum New To Java
    Replies: 1
    Last Post: 11-09-2009, 11:06 AM
  3. Replies: 0
    Last Post: 03-26-2009, 01:23 AM
  4. Reading two text file and sum them up
    By matt_well in forum New To Java
    Replies: 36
    Last Post: 07-22-2008, 02:55 AM
  5. Reading text file
    By Lennon-Guru in forum New To Java
    Replies: 1
    Last Post: 12-15-2007, 11:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •