Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. openFileDialog1.Filter = "*.txt";
  2. openFileDialog1.Title = "Select a Text File";
  3. openFileDialog1.Multiselect = true;
  4.  
  5.  
  6. DialogResult dr = this.openFileDialog1.ShowDialog();
  7. if (dr == System.Windows.Forms.DialogResult.OK)
  8. {
  9. List<string> link_list = new List<string>();
  10.  
  11. foreach (String file in openFileDialog1.FileNames)
  12. {
  13. string[] a = System.IO.File.ReadAllLines(file);
  14.  
  15.  
  16. for (int i = 0; i < a.Length; i++)
  17. {
  18. link_list.Add(a[i].ToString());
  19. }
  20.  
  21. }
  22.  
  23.  
  24. AllLinks = link_list.ToArray();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement