|
-
Oct 3rd, 2000, 07:11 AM
#1
Thread Starter
New Member
Could someone please help me in trying to read information from a text file into a web page (text box on a form).
AS i've tried everything and can't find out how. An example page would be greatly appreciated.
-
Oct 3rd, 2000, 08:03 AM
#2
Fanatic Member
hi neoknight
4guysfromrolla has a good description on how to do what you ask.
check out http://www.4guysfromrolla.com/webtech/040699-1.shtml
hope this helps
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Oct 3rd, 2000, 08:12 AM
#3
Frenzied Member
I just read that link as well Ian!
but I knocked-up a complete example...
Code:
<%@ Language=VBScript %>
<%option explicit%>
<HTML>
<BODY>
<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f,myText
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\testfile.txt", ForReading, True)
Do While not f.AtEndOfStream
myText = myText & f.ReadLine & vbCrLf
Loop
f.Close
Response.Write("<input value='" & mytext & "'>")
%>
</BODY>
</HTML>
-
Oct 3rd, 2000, 08:18 AM
#4
Fanatic Member
cheers mark, it's just that I didn't have enough time to do it myself.
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
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
|