解决方案 »

  1.   

    vb6读写文件不需要导入什么包
        Dim n As Long
        n = FreeFile()
        Open "D:\123.txt" For Append As n
        Print #n, "添加这句话"
        Close n
      

  2.   

    哦,我发现了,我从网上拷的,它是中文的“,那我要在TXT文件后面直接写内容怎么写?
      

  3.   

    Open "D:\RTX.txt" For Output As #1
    Print #1, txtRecvSmsMsg.Text  
    Close #1
    这个命令好像可以解决我上面的问题!!
      

  4.   

    For Output 是把原文件内容清空,从头开始写数据
    for append是在文件末尾追加数据