Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Manevra
- {
- class Jucator
- {
- private string nume;
- private string post;
- private string cnp;
- public string getNume { get { return nume; } }
- public string getPost { get { return post; } }
- public string getCnp { get { return cnp; } }
- private int varsta;
- private string data_nasterii;
- private string echipa;
- public Jucator(string nume,string post,string cnp,string echipa)
- {
- this.nume = nume;
- this.post = post;
- this.cnp = cnp;
- this.echipa = echipa;
- salveaza_fisier();
- }
- public Jucator(string nume,string post, string cnp)
- {
- this.nume = nume;
- this.post = post;
- this.cnp = cnp;
- }
- public void salveaza_fisier()
- {
- StreamWriter sw = new StreamWriter("E:\\LPF\\" + echipa + "\\" + cnp + ".lpf", false);
- sw.WriteLine(nume);
- sw.Write(post);
- sw.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement