Hi,
What I am trying to do is hard for me to explain (not the best at explaining things in typed words). What I want to do is:
1. Read One line in a Text file which looks like this.
255
147
159
248
2. Save that as a Variable so that I can use it in the following code
CODE
Private Declare Sub PortOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Byte)
Dim svdvariable As Interger
**CODE NEEDED TO GET VARIABLE FROM FILE**
Portout (888, svdvariable)
OK what the above code does is, it takes a decimal value and sends it to a .dll which then processes the value.
The variable that was saved would be named "svdvariable".
The Code would then go on to wait 100 milliseconds and then it would run again, but of course, reading the next line in the Text File. So The whole app's code would look something like this:
[code]
Private Class
Private Declare Sub PortOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Byte)
Dim svdvariable As Interger
**CODE NEEDED TO GET VARIABLE FROM FILE**
Private Sub
Portout (888, svdvariable)
End Sub
End Class
[\code]
Now I think the best way would be to use a function to save the variable from the text file, but I only know limited knowledge of coding and I don't know how to read one line from the text file and so on.
If anyone could help, That would be great
Thanks