Mornin,
Im in confsion on how to open Myfile.txt, then read it into a big string that I can then display on my page.
This is where Im at:
<%
Dim fso, f, ts
MyFile = FreeFile
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set fso = CreateObject("Scripting.FileSystemObject"
Set MyFile = fs
penTextFile("MyFile.txt", 1, True)
Do Until EOF(MyFile)
Line Input #MyFile, TempLine
MyString = MyString + TempLine + Chr(13) + Chr(10)
Loop
response.write MyString
Close #MyFile
%>
Cheers for your help,
--inqbus--
Im in confsion on how to open Myfile.txt, then read it into a big string that I can then display on my page.
This is where Im at:
<%
Dim fso, f, ts
MyFile = FreeFile
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set fso = CreateObject("Scripting.FileSystemObject"
Set MyFile = fs
Do Until EOF(MyFile)
Line Input #MyFile, TempLine
MyString = MyString + TempLine + Chr(13) + Chr(10)
Loop
response.write MyString
Close #MyFile
%>
Cheers for your help,
--inqbus--