View Full Version : asp read file
midhul
02-20-2008, 12:34 PM
could any one tell me how i can read a file with asp
called test.txt!
benslayton
02-23-2008, 06:37 PM
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(Server.MapPath("test.txt"), 1)
Response.Write(f.ReadAll)
f.Close
Set f=Nothing
Set fs=Nothing
%>
There ya go this site is great for basic asp stuff: w3schools.com (http://www.w3schools.com)
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.