|
-
July 9th, 2002, 04:15 AM
#1
file open
Hello all
im very new to javascript and id appreciate a little help out of a hole ive dug myself into
basically can java script open a .txt file and read out the contents ? if so could you show me how ?
thanks a million
Al
-
October 3rd, 2002, 09:49 PM
#2
JavaScript can read the contents of files of type "text/html" (to a point) but not files of type "text/plain".
You can use perl for this.
-
May 7th, 2003, 05:03 PM
#3
can you show the code the read a file within javascript?
-
May 7th, 2003, 05:36 PM
#4
Are you trying to read a text file on the client machine using javascipt from within the browser? If so, this is not possible due to the browsers security.
If you are using WSH (windows script host) check this out
http://www.winscripter.com/wsh/fileio/ht_readfile.asp
Satish
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|