Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string Pfad = string.Empty;
- OpenFileDialog openFileDialog1 = new OpenFileDialog();
- openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files(*.*)|*.*";
- if (openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- Pfad = openFileDialog1.FileName;
- pfadMain = Pfad;
- // Datei open
- string zeile = File.ReadAllText(Pfad);
- String[] zeilen = zeile.Split('\n');
- foreach (String c in zeilen)
- {
- String line = c.Trim();
- spalten = line.Split(',');
- if (spalten.Length < 3)
- {
- continue;
- }
- PasswordEintrag pe = new PasswordEintrag(this);
- pe.SetName(spalten[0]);
- pe.SetLogin(spalten[1]);
- pe.SetPasswort(spalten[2]);
- flowLayout.Controls.Add(pe);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement