Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript to read a text file

Status
Not open for further replies.

786snow

Programmer
Joined
Nov 12, 2006
Messages
75
Hi,

Is there a simple way read a simple text file using javascript? and then displaying the content of that file?
 
Look into the FileSystemObject within Javascript.

fso = new ActiveXObject("Scripting.FileSystemObject");



[monkey][snake] <.
 
Only works in IE for Windows (of course) [smile] You could achieve something using Java in the likes of Firefox I think (assuming the Java sandbox gets ability to access file system objects).

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top