Can anyone help me delimit text files by " "? I have searched the forums but have nto yet found anyone delimiting to pull out each word. I want to pull out each separate word of a text file. Any help would be greatly appreciated. Thank you.

VB Code:
  1. Private Sub Command1_Click()
  2.     Dim str As String
  3.     Dim lines() As String
  4.    
  5.     Open "C:\file.txt" For Input As #1
  6.         str = Input(LOF(1), #1)
  7.         lines = Split(str, vbNewLine)
  8.         For N = LBound(lines) To UBound(lines)
  9.             word = Split(lines, " ")
  10.         Next N
  11.     Close #1
  12.    
  13.     For N = LBound(newText) To UBound(newText)
  14.         str = str & newText(N)
  15.     Next N
  16.    
  17.     Open "C:\newFile.txt" For Output As #2
  18.         Print #2, str
  19.     Close #2
  20. End Sub