Results 1 to 3 of 3
  1. #1
    shiva is offline Member
    Join Date
    Mar 2009
    Posts
    14
    Rep Power
    0

    Default Read the content of file from a specified path

    Please let me know how read the contents of a file from a user entered path and display the contents. IF anyone have the source code please forward

    Thanks & Regards
    Shiva

  2. #2
    sruthi_2009 is offline Member
    Join Date
    Feb 2009
    Posts
    32
    Rep Power
    0

    Default

    Take the path as a string input.
    Check out FileInputStream and FileOutputStream classes.
    with warm regards,
    Sruthi :)

  3. #3
    shiva is offline Member
    Join Date
    Mar 2009
    Posts
    14
    Rep Power
    0

    Default display the files on text area

    Hi,
    Thank you very much for your reply. I have done with code. my requirement is display list of log files on the text area of jsp page and display the contents of the selected log file.
    I have attached the image file of my requirement.
    shivu.mn.googlepages.com/eg.JPG


    Thanking you
    shiva

Similar Threads

  1. How to Encrypt content of txt file?
    By aRTx in forum New To Java
    Replies: 0
    Last Post: 03-25-2009, 10:26 AM
  2. Read eclipse installation path in java
    By java_kick in forum Advanced Java
    Replies: 0
    Last Post: 03-23-2009, 02:49 PM
  3. Replies: 0
    Last Post: 02-11-2009, 09:53 AM
  4. How to set Image file path
    By anil.bharadia in forum AWT / Swing
    Replies: 1
    Last Post: 01-28-2009, 09:10 PM
  5. file path
    By Arsench in forum New To Java
    Replies: 7
    Last Post: 10-30-2008, 05:39 AM

Posting Permissions

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