Hello !
I just downloaded a Dictionary Words list .txt( containing all dictionary words ), every word is on a line.
What i need is only words > 5 letters ( length > 5 ). S o i though about making a Visual basic software that delete words < 5 letters from the file.
This is how i read a file from VB
Dim FILE_NAME As String = "C:\Users\Owner\Documents\test.txt"
Dim TextLine As String
If System.IO.File.Exists(FILE_NAME) = True Then
Dim objReader As New System.IO.StreamReader(FILE_NAME)
Do While objReader.Peek() <> -1
TextLine = TextLine & objReader.ReadLine() & vbNewLine
Loop
Textbox1.Text = TextLine
Else
MsgBox("File Does Not Exist")
End If
Any WAy could you help me with the code ? How to delete the word smaller then 5 letters ?
I am using Visual basic 2008
And Visual Basic language
The list is in .txt format
Thanks :)