我想将数组(OutputArray)存储到一个文本文件中,其中列分隔为逗号,逐行换行,这就是代码:
Dim myFile As System.IO.StreamWriter
myFile = My.Computer.FileSystem.OpenTextFileWriter(“file.txt”, False)
For i = 0 To lineCount
For j = 0 To 9
System.IO.File.AppendText("file.txt", outputarray(i, j) & ",")
Next
Next
myFile.Close()
但是抛出了一个错误: 错误BC30057“公共共享重载函数AppendText(路径为字符串)作为StreamWriter”的参数太多。