Advertisement
k0mZ

Untitled

Nov 4th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. private void btnLista2Fajl_Click(object sender, EventArgs e)
  2. {
  3.  
  4. saveFileDialog1.Filter =
  5. "Text files (*.txt)|*.txt|All files (*.*)|*.*";
  6.  
  7. if (saveFileDialog1.ShowDialog() == DialogResult.OK)
  8. {
  9.  
  10. StreamWriter sw = new StreamWriter(saveFileDialog1.FileName);
  11.  
  12. List<objOsoba> t =
  13. ListaObjOsoba.Instanca.ListObjOsobaVals;
  14.  
  15. foreach (objOsoba o in t)
  16. {
  17. sw.WriteLine(o.ToString());
  18. }
  19.  
  20. sw.Close();
  21. };
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement