469,341 Members | 7,768 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,341 developers. It's quick & easy.

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 18428
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.