Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q734, November 09, 2000 at 02:09:24:

You are here: irt.org | About | Feedback | 1976 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q734

Sent by
Greg Lewis on November 09, 2000 at 02:09:24:

Technical:
Not technical enough

Comments:
In NN+4 use this

function readFromFile(filename) {
var text = ""
var filechar
netscape.security.PrivilegeManager.enablePrivilege('UniversalFileAccess')
var file = new java.io.File(filename)
var FileReader = new java.io.FileReader(file)
filechar = FileReader.read()
while (filechar != -1) {
text = text + String.fromCharCode(filechar)
filechar = FileReader.read()
}
FileReader.close()
return text
}



©2018 Martin Webb