VB.NET Run command against 2 arrays -


i have read 2 text files 2 arrays , want run command uses 2 arrays.

example:

part1.txt(array 1) hxxp://somethinghere.com\1 hxxp://somethinghere.com\2  part2.txt(array 2) bob james   myprogram.exe hxxp://somethinghere.com\1 bob myprogram.exe hxxp://somethinghere.com\2 james 

i want run loop goes through both arrays, here's have far:

dim part1() string = io.file.readalllines("c:\part1.txt") dim part2() string = io.file.readalllines("c:\part2.txt")  each line string in part1     msgbox(line) next 

edit: working code:

private sub form1_load(sender object, e eventargs) handles mybase.load     dim part1() string = io.file.readalllines("c:\part1.txt")     dim part2() string = io.file.readalllines("c:\part2.txt")      parse integer = 0 part1.getupperbound(0)         msgbox(string.concat("myprog.exe " & """" & part1(parse) & """" & " -arg1 " & """" & part2(parse) & ".txt" & """"))     next end sub 

so this:

myprog.exe "hxxp://somethinghere.com" -arg1 "bob.txt"

how this?

 private sub testmethod()          dim part1() string = new string() {"one", "two", "three"}         dim part2() string = new string() {"10", "20", "30"}          parse integer = 0 part1.getupperbound(0)             debug.print(string.concat("command ", part1(parse), part2(parse)))         next     end sub 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -