472,133 Members | 1,036 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

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.
Dec 15 '07 #1
2 18639
acoder
16,027 Expert Mod 8TB
For file upload, see this or this.

If you want to read/write files in Ruby, see this tutorial.
Jul 4 '08 #2
improvcornartist
303 Expert 100+
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.
Jul 8 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Yang Li Ke | last post: by
10 posts views Thread by ZafT | last post: by
4 posts views Thread by ESPN Lover | last post: by
8 posts views Thread by a | last post: by
5 posts views Thread by lovecreatesbea... | last post: by
6 posts views Thread by Thomas Kowalski | last post: by
9 posts views Thread by flebber | last post: by
2 posts views Thread by Kevin Ar18 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.