<% whichfile=server.mappath("news.txt") Set fs = CreateObject("Scripting.FileSystemObject") Set thisfile = fs.OpenTextFile(whichfile, 1, False) counter=0 do while not thisfile.AtEndOfStream counter=counter+1 thisline=thisfile.readline response.write thisline & "
" loop thisfile.Close set thisfile=nothing set fs=nothing %>