|
-
reading and writing a file
Hello,
I am trying to read the text form another file from the server and then
"write" the text on the current page. However, when I try using the
script below or another similar script, I get a message that the Alumni.txt
file cannot be found. Any ideas?
Thanks!!!!!!!
Roger
<HTML>
<HEAD>
<TITLE>Read Me</TITLE></HEAD>
<BODY>
<SERVER>
var result
myFile = new File("C:\Netscape\SuiteSpot\docs\alumni.txt")
result = myFile.open ("r")
while (!myFile.eof ()) {
write (myFile.readIn () + "<BR>") }
result = myFile.close ()
</SERVER>
</BODY>
</HTML>
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks