ASP Navigate between pages in a text file

Navigate between pages in a text file

//To run this script you need random.txt
//You can find it here http://codelibary.com/temp/links.txt

<html>
<body>

<B>This is the start page!</B>

<%
Set nl=Server.CreateObject("MSWC.NextLink")
If (nl.GetListIndex("links.txt")>1) Then
%>
<a href="<%Response.Write(nl.GetPreviousURL("links.txt"))%>">Previous</a>
<%End If%>

<a href="<%Response.Write(nl.GetNextURL("links.txt"))%>">Next</a>

</body>
</html>