Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openFileDialog1.Filter = "*.txt";
- openFileDialog1.Title = "Select a Text File";
- openFileDialog1.Multiselect = true;
- DialogResult dr = this.openFileDialog1.ShowDialog();
- if (dr == System.Windows.Forms.DialogResult.OK)
- {
- List<string> link_list = new List<string>();
- foreach (String file in openFileDialog1.FileNames)
- {
- string[] a = System.IO.File.ReadAllLines(file);
- for (int i = 0; i < a.Length; i++)
- {
- link_list.Add(a[i].ToString());
- }
- }
- AllLinks = link_list.ToArray();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement