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)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.