csv文件不就是用分割符来分隔的文件,
一般用逗号:","
只用你按照CSV文件的格式生成文件然后下载就行了

解决方案 »

  1.   

    <%
    set fs = server.createobject("scripting.filesystemobject")
    If fs.FileExists("d:\temp\test.CSV") then
    fs.DeleteFile"d:\temp\test.CSV", True
    End if
    set myfile = fs.createtextfile("d:\temp\test.CSV",true)
    myfile.writeline "title1" & "," & "title2" & "," & "title3"
    myfile.writeline "0021" & "," & "rrwe" & "," & "0.30" 
    myfile.writeline "0021" & "," & "rrwe" & "," & "0.30" 
    myfile.close
    set myfile=nothing%>--〉生成csv文件
      

  2.   

    如果我现在在action里面有一个list数据,里面就是一行一行的csv,应该怎么设置内容?
    谢谢~~