I'd start by
changing this bit:
while (ipconfigObject .EndOfFile() == false)
{
tmpData+= ipconfigObject .ReadLine()+"\n"
}
ipconfigObject .Close()
Debug.trace(tmpData)
to
while (ipconfigObject .EndOfFile() == false)
{
tmpData = ipconfigObject .ReadLine()+"\n"
Debug.trace(tmpData+'\n')
}
ipconfigObject .Close()
THIS WILL basically read each line at a time into the variable tmpData and then show it in the debug pane. The "\n" just inserts a new line.
You cannot simply specify a line by number but you can do something similar using a counter.
_____________________________________________________
var counter = 0
while (ipconfigObject .EndOfFile() == false)
{
tmpData = ipconfigObject .ReadLine()+"\n"
if (counter == 5) Debug.trace(tmpData+'\n') //IE only show line five
counter++ //same as counter = counter + 1
}
ipconfigObject .Close()
THIS WILL only show line five. BUT you could also have more ifs that do all sorts of things such as reading different lines into different variables.
Have a play and see what you can make it do.
The problem with books is that they tend to focus on JavaScript for the web. OpusScript is basically the same as JavaScript, except that you don't have all the web bits but the principle is the same. Books like the JavaScript in 24hrs and the Dummies series are great for understanding the concept of programming in Opus Script even if you cannot use the code directly.
Mack