以下面的方式写入字符串,在前后都有双引号,谁能帮我解决,不写入双引号
-------------------------------------------------
        Open App.Path & "\proxy.ini" For Output As #1
        For i = 0 To .cbxProxyServer.ListCount - 1
             Write #1, .cbxProxyServer.List(i)
        Next i
        Close #1
-------------------------------------------------
比如,
str="ASB"
写入到文件
就会显示
"ASB"而不是想要的
ASB

解决方案 »

  1.   

    Open App.Path & "\proxy.ini" For Output As #1
            For i = 0 To .cbxProxyServer.ListCount - 1
                 print #1, .cbxProxyServer.List(i)
            Next i
            Close #1
      

  2.   

    不过,如果你是写.ini文件的话,为什么不使用写.ini的API呢?
      

  3.   

    Open App.Path & "\proxy.ini" For Binary As #1
        For i = 0 To .cbxProxyServer.ListCount - 1
          Put #1, , .cbxProxyServer.List(i)
        Next i
        Close #1
      

  4.   

    Open App.Path & "\proxy.ini" For Output As #1
            For i = 0 To .cbxProxyServer.ListCount - 1
                 print #1, .cbxProxyServer.List(i)
            Next i
    Close #1
      

  5.   

    因为不是Ini文件,只是一般的文件,用了后缀名而已
      

  6.   

    用Print就可以了
    还有就是用FileSystemObject也可以