asp导入txt文件问题

xsara 2008-08-22 10:31:14
用asp导入txt文件到服务器
再用fso读出
原有txt文件中文本格式为:
1392323232
1392323232
1392323232
1392323232
每个手机一行
这个换行要替换成逗号,是替换什么代码?

即替换为1392323232,1392323232,1392323232,1392323232
...全文
124 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
l2003x 2009-03-13
  • 打赏
  • 举报
回复
貌似是找/n吧
egg_server 2008-08-22
  • 打赏
  • 举报
回复
Set fs = Server.CreateObject("Scripting.FileSystemObject")
File = Server.MapPath("说明.txt")
Set txt = fs.OpenTextFile(File)

If Not txt.atEndOfStream Then '先确定还没有到达结尾的位置
while not txt.AtEndOfStream
Line = txt.ReadLine '读取一行数据
response.Write(Line)&","
Wend
end if

28,391

社区成员

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

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