Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Read a file

How to read the content of a file.


<%
Dim FileObject
Set FileObject=Server.CreateObject("Scripting.FileSystemObject")
'read the file
Set InStream=FileObject.OpenTextFile(Server.MapPath("nomefile.txt"),1,False,False)
linee=Instream.ReadAll
InStream.Close
Set InStream=Nothing
'Show the content of the file
Response.write "<pre>" & linee & "</pre>"
Set FileObject=Nothing
%>


Download code...


Print this page


 

Inizio pagina

risorse per webmaster