Click here to Skip to main content
15,883,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a html page and a text file in same folder.
I want to read that text file and show the content of that file in alert box.
Please,tell me the javascript code regarding this
plz this is urgent.
Posted
Comments
Shubhashish_Mandal 9-May-13 2:52am    
Google is the best place to start anything. Instead asking for any code do some r&d on that.
Here is my google result :
http://www.google.co.in/search?q=read+text+file+in+javascript&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
vimal Tyagi Zindagi 9-May-13 3:09am    
You are right but i have try lot of time for yesterday but i could not.....
VishwaKL 9-May-13 5:05am    
Using java script we cant do file operations. Try to do on server side
Oso Oluwafemi Ebenezer 9-May-13 7:24am    
It is now very possible in HTML5. It is called FileReader()

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900