Dim str_txt As String = ProjectPath & "config.txt"
If FileSys.FileExists(str_txt) Then
Dim strs As String = FileSys.ReadAllText(str_txt, Encoding.Default)
Dim rs() As String = strs.Split("|")
If rs.Length = 3 Then
_website = rs(0).ToString
_webchat = rs(1).ToString
_phone = rs(2).ToString
End If
Else
Messagebox.Show("文件不存在或已经被删除!", "提示")
End If
报错: 找不到字段:“UserCode._website”。
其中 _website _webchat _phone 是我定义的全局变量 string类型
txt 文本里面的内容是: website:www.baidu.com|Contact:13988888888|webchat:xxxxxx
报错是什么原因啊?