shetlandbob
Programmer
I have the following code:
This loads a single line from my text file in to a variable, however I have the following in my input file
How can I load this into a variable and a number? i.e. so that
Thanks
Robert Cumming
Code:
Dim FileName As String
Dim fileNum As Integer
Dim variable As String
Dim inumber As Integer
fileNum = FreeFile()
[green] 'Open Text File For Input[/green]
Open FileName For Input As #fileNum
Do While Seek(fileNum) <= LOF(fileNum)
[green] 'Store One Line Of Text From File To Variable[/green]
Input #fileNum, variable
MsgBox (variable)
[green] '.... more code ....[/green]
Loop
Code:
myVariable myInteger
How can I load this into a variable and a number? i.e. so that
Code:
variable = myVariable
inumber = myInteger
Robert Cumming