I am trying to save a list of words in a textfile but get an error, at this line: Dim w = hOO.Words.ToList()
System.MissingMemberException: 'public member ToList on type String() not found
System.MissingMemberException: 'public member ToList on type String() not found
Code:
If hOO IsNot Nothing Then
Loadhoot()
End If
Dim sb = New StringBuilder()
Dim w = hOO.Words.ToList()
w.Sort()
w.ForEach(Function(x) sb.AppendLine(x))
File.WriteAllText("words.txt", sb.ToString(), Encoding.UTF8)