简单问题:如何和asp在txt增加内容?

cwdn 2004-08-01 05:54:13
比如现在有test.txt文件,内容是:
test1
test2
test3

我要增加一个test4在test3下面.
...全文
152 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
dwowbaaa 2004-11-01
  • 打赏
  • 举报
回复
支持fso的话

f.WriteLine("test4")

不支持

loadup
超级大笨狼 2004-11-01
  • 打赏
  • 举报
回复
脚本帮助下载

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=376D98B6-67CF-4473-9B7D-F635292A286F
  • 打赏
  • 举报
回复
啊?你还不会呢??用textstream加啊,偶晕,好老的贴了
cwdn 2004-11-01
  • 打赏
  • 举报
回复
up
cwdn 2004-08-03
  • 打赏
  • 举报
回复
up
cwdn 2004-08-03
  • 打赏
  • 举报
回复
大家误解了我的意思,不是加一个,比如我有test5,test6,
我就是要做一个文件可以直接在下一列加上去。
mlzboy 2004-08-02
  • 打赏
  • 举报
回复
请先尝试用探针检测空间是否支持fso
  • 打赏
  • 举报
回复
用fso写文件。
ycted 2004-08-02
  • 打赏
  • 举报
回复
上面的fso都写出来了.楼主用就可以了.
  • 打赏
  • 举报
回复
用fso写文件。
flying310 2004-08-02
  • 打赏
  • 举报
回复
用fso写文件。
colinliu 2004-08-02
  • 打赏
  • 举报
回复
filename=Server.MapPath("test.txt")
Set fs=CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(filename,8,true,0)
f.WriteLine("test4")
f.close
set f=nothing
set fs=nothing
BlackBabbitt 2004-08-02
  • 打赏
  • 举报
回复
fso 对象~~~
emilsong 2004-08-01
  • 打赏
  • 举报
回复
FSO
computer17 2004-08-01
  • 打赏
  • 举报
回复
up
wubaozhang 2004-08-01
  • 打赏
  • 举报
回复
fso
SonicX 2004-08-01
  • 打赏
  • 举报
回复
先确认有文件访问权限

filename=Server.MapPath("test.txt")
Set fs=CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(filename,8,true,0)
f.WriteLine("test4")
f.close
set f=nothing
set fs=nothing

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧