|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Text file help
Does anyone have a simple way of reading a specific line of text in a file into a text box, i have a text file with 30 lines and i want to read them into thirty text boxes. THANKS
|
|
#2
|
||||
|
||||
|
Code:
Public Sub ReadFile(sFileName as String)
Dim iFp as Integer
Dim sLine as String
Dim iCntr as Integer
iFp = Freefile
iCntr = 0
Open sFileName for Input as #iFp
While Not EOF(iFp)
LineInput #iFp, sLine
txtTextArray(iCntr) = sLine
Wend
Close iFp
End Sub
Also, in the future, please use an appropriate subject title. You can refer the to sticky thread at the top of this forum for more information on how to post a question. |
|
#3
|
|||
|
|||
|
thanks
thank you
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Text file help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|