title: How to save input in C# console application
body: <p>I need help about saving inputs in specified text file but I don't know how to create and save inputs in that file. So can someone help me about saveStudent function?</p>
  
  <pre><code>private static void addStudent()
          {
              Console.WriteLine("Name: ");
              string ime = Console.ReadLine();
  
              Console.WriteLine("Lastname: ");
              string prezime = Console.ReadLine();
  
              Console.WriteLine("Subject: ");
              string kurs = Console.ReadLine();
  
              saveStudent();
          }
  </code></pre>