Thanks...I've got it working now...

VB Code:
  1. fnum = FreeFile
  2.     FileName = frmInput.BestandVenster.FileName
  3.     Open FileName For Input As #fnum
  4.  
  5.  
  6.     Do Until EOF(1)
  7. '    'Does this loop until End Of File(EOF) for file number 1.
  8.  Line Input #fnum, data
  9.         'Read one line and puts it into the varible Data.
  10.        
  11.         If Not data = "" Then
  12.         elements = Split(data, "|")
  13.         frmInput.Controls(elements(UBound(elements) - 1)).Text = elements(UBound(elements))
  14.         End If
  15.         '"frmInput."  &  elements(UBound(elements) - 1) & ".text" = elements(UBound(elements))
  16.       'MsgBox EOF(1)
  17.  Loop
  18.  
  19. Close #fnum
  20.      
  21. Exit Sub
  22.        
  23. ErrHandle:
  24.     MsgBox "Error"
  25.  
  26. End Sub