asp读取INI文件及如何定义Session数组变量 (20分)

  • 主题发起人 delphifan2008
  • 开始时间
D

delphifan2008

Unregistered / Unconfirmed
GUEST, unregistred user!
同志们,请问在Asp中能不能和在DELPHI中一样读取INI文件,急!!!
如何定义Session数组变量
 

<%
'Option Explicit
Dim fso, f, FilePath, s
Set fso=Server.CreateObject("Scripting.FileSystemObject") '创建文件系统对象实例
FilePath=Server.MapPath("Content.txt") '映射文件在服务器上的物理路径
Set f = fso_OpenTextFile(FilePath,1,True ) '创建文本文件实例

s=f.ReadLine '读出一行内容

Response.write s

f.close
set f=nothing
set fso=nothing
%>
 
顶部