If I am to understand you correctly, I think you are after something that uses the LINE INPUT syntax. (I have assumed your Text Box controls are part of a control array)
The five lines from your txt file should now be in five different text box controls.Code:Dim iFreeFile as integer Dim iControlArrayInstance as Integer iFreeFile = FreeFile iControlArrayInstance = 0 Open "C:\File.txt" For Input As #iFreeFile Do While Not EOF(iFreeFile) 'Read one whole line at a time Line Input #iFreeFile, sMyString 'Place the text in the relevant TextBox (Control Array) txtMyTextBoxControlArray(iArrayInstance) = sMyString iArrayInstance = iArrayInstance + 1 Loop Close #iFreeFile
------------------
Ishamel
[email protected]
How can I tell you I love you when you are sitting on my face?
[This message has been edited by Ishamel (edited 02-22-2000).]




Reply With Quote