Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old December 15th, 2007, 05:07 AM
Newbie
 
Join Date: Dec 2007
Posts: 5
Default 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.
Reply
  #2  
Old July 4th, 2008, 04:27 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,740
Default

For file upload, see this or this.

If you want to read/write files in Ruby, see this tutorial.
Reply
  #3  
Old July 8th, 2008, 04:15 PM
Expert
 
Join Date: May 2007
Posts: 179
Default

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.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles