S
Steven Burn
Just wondering if anyone is aware of any way to reverse the following so it
displays the text from
end of file > start of file
instead of
start of file > end of file
<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim ThisLine
Dim PrintLine
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
SomeFile = Server.MapPath("somefile.txt")
Set InputStream = FileObject.OpenTextFile(SomeFile, ForReading, False)
Do While Not InputStream.AtEndOfStream
ThisLine = InputStream.ReadLine
PrintLine = PrintLine + ThisLine + "<br>"
Loop
InputStream.Close
Set OutputStream = Nothing
Set FileObject = Nothing
Response.Write PrintLine
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
displays the text from
end of file > start of file
instead of
start of file > end of file
<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim ThisLine
Dim PrintLine
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
SomeFile = Server.MapPath("somefile.txt")
Set InputStream = FileObject.OpenTextFile(SomeFile, ForReading, False)
Do While Not InputStream.AtEndOfStream
ThisLine = InputStream.ReadLine
PrintLine = PrintLine + ThisLine + "<br>"
Loop
InputStream.Close
Set OutputStream = Nothing
Set FileObject = Nothing
Response.Write PrintLine
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)