Hi,
i have two textboxes.
I have a text file that has list of file paths for different scripts used on our network.
the file is setup like this:
C:\Scripts\dnsflush.ps1
C:\Scripts\DFQ.ps1
D:\N\Exchange\Netservicestop.ps1
D:\AD\scripts\ugroups.ps1
i want to only read the lines "C:\Scripts\dnsflush.ps1" -line0 and "D:\N\Exchange\Netservicestop.ps1" -line2 and then iwant to print the line to textbox on the form as a string.
foreach (string line in File.ReadLines("c:\\file.txt"))
{
textbox1.text = (line0);
textbox2.text = (line2);
}
i have no idea where to start any help would be great :)