- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
static Queue<string> getProxiesFromFile(string filename)
{
Queue<string> temp=new Queue<string>();
System.IO.StreamReader file;
string line;
// Read the file and display it line by line.
if (filename == null)
{
file = new System.IO.StreamReader("proxy.txt");
}
else
{
try
{
file = new System.IO.StreamReader(filename);
}
catch (FileNotFoundException)
{
throw;
}
}
while ((line = file.ReadLine()) != null)
{
temp.Enqueue (line);
Console.WriteLine(line);
}
return temp;
}