How to read a file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dakshayini
    New Member
    • Dec 2007
    • 16

    How to read a file?

    hi all,

    I will browse the file and read the name of file in my web page.similarly i need to read the contents of that browsed file into my web page.Is it possible to read and write the contents of browsed file into my web page.please if anyone know about it.help me out.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    For file upload, see this or this.

    If you want to read/write files in Ruby, see this tutorial.

    Comment

    • improvcornartist
      Recognized Expert Contributor
      • May 2007
      • 303

      #3
      What do you have so far? Using the file upload, you will be able to browse to a file, read it's filename, and read it's contents. Then you can output the file contents in your page.

      Comment

      Working...