Certo.
codice:
<%
pagina = "/sample/pagina.txt"
function leggiTXT(path)
if len(pagina) > 0 then
set fso = server.createObject("Scripting.FileSystemObject")
if fso.fileExists(server.mapPath(path)) then
set file = fso.openTextFile(server.mapPath(path))
content = file.readAll
if len(content) > 0 then content = replace(content,vbCrLf,"
")
response.write content
set file = nothing
else
response.write "Impossibile trovare il file: " & path & "
"
end if
set fso = nothing
else
response.write "Nessun file da leggere specificato
"
end if
end function
%>
<html>
<head>
<title>Titolo</title>
</head>
<body>
<% call leggiTXT(pagina) %>
</body>
</html>