How to read a file from bottom

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canny456
    New Member
    • Sep 2007
    • 1

    How to read a file from bottom

    Hi everyone,
    We have requirement that i should able to the latest information(dat a) from the log file .This log file will be updating every 15 minutes and its file size is around 50MB.

    So i should able to read that from bottom so that i will get the latest information

    please suggest how to approach.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by canny456
    Hi everyone,
    We have requirement that i should able to the latest information(dat a) from the log file .This log file will be updating every 15 minutes and its file size is around 50MB.

    So i should able to read that from bottom so that i will get the latest information

    please suggest how to approach.
    Have a look at the RandomAccessFil e class.

    kind regards,

    Jos

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      Originally posted by JosAH
      Have a look at the RandomAccessFil e class.

      kind regards,

      Jos
      Wow, that's useful! I could of used that a few times... Well next time I know! ^^

      Greetings,
      Nepomuk

      Comment

      Working...