For something that the end user will see I'd always use a proper GUI, but just to log the output of the server it's overkill.
Ok. Yes. I agree with you on that.
For something that the end user will see I'd always use a proper GUI, but just to log the output of the server it's overkill.
static void Main()
{
using (StreamReader reader = new StreamReader("data.txt"))
{
string line;
int count = 0;
while ((line = reader.ReadLine()) != null)
{
//int lineCount = File.ReadAllLines("data.txt").Length;
//Console.WriteLine(lineCount);
count++;
string[] parts = line.Split(',');
Student Person;
Person.detail = parts[0];
Person.test = parts[1];
Person.detail = parts[2];
Person.test = DateTime.Parse(parts[3]);
Person.detail = Char.Parse(parts[4]);
Console.WriteLine(Person.detail + "\t" + Person.test + "\t" + Person.detail + "\t" + String.Format("{0:MM/dd/yyyy}", Person.test) + "\t" + Person.detail);
Console.WriteLine(parts);