right now it is only reading the first line of the file and puting it into i. how can i read the next line of the file?
StreamReader sr = new StreamReader("c:\\iplist.txt");
String[] list = new String[45];
string S;
sr = File.OpenText("c:\\iplist.txt");
S = sr.ReadLine();
while (S != null)
{
for (int i = 0; i < S.Length; i++)
{
list[i] = S;
}
}