Dim s As String = FileSys.ReadAllText("C:\Users\admin\Desktop\微信机器人\新建文本文档.txt", Encoding.Default)
s = s.trim(vbcr, vblf, " ")'剔除最后一行空值
'Output.Show(s)
Dim Values() As String
Values = s.split(Chr(13) & Chr(10))
For Index As Integer = 0 To Values.Length - 1
'解析json
Dim jo As JObject = JObject.Parse(Values(Index))
Output.Show(Values(Index))
错误来源是这个文档里面的东西
此主题相关图片如下:1.png
For Index As Integer = 0 To Values.Length - 1Try
Dim jo As JObject = JObject.Parse(Values(Index))
Catch ex As Exception
MsgBox(ex.message)
End Try
next