Ok well, here's how I've structured my code up to now. I know it may be not top-notch C# code but it does the job. (I've stripped a lot of it so that it is shorter and to-the-point).
Code:
/*
* Created by SharpDevelop.
* User: Alexandre
* Date: 2006-08-15
* Time: 15:17
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
namespace StudentData
{
class Book
{
public String Title, ISBN, Author;
public float Price;
}
class Evaluation
{
public String Name;
public float Note, MaxScore, GroupAvg, Weight;
}
class Course
{
public void AddBook(Book b)
{
BookList.Add(b);
}
public void AddBook(String t, String a, String i, float p)
{
BookList.Add(new Book(t, a, i, p));
}
public void AddEvaluation(Evaluation ev)
{
EvaluationList.Add(ev);
}
public void AddEvaluation(String na, float no, float m, float g, float w)
{
EvaluationList.Add(new Evaluation(na, no, m, g, w));
}
private String Name, Id;
private List<Evaluation> EvaluationList;
private List<Book> BookList;
}
class StudentManager
{
public void GetDataFromFile(String file_name)
{
// This is where I want to read the file
}
private List<Course> CourseList;
}
}
Basically I don't really need it to be of any specific format at all, I just need to write the file so that I can read from it and write to it easily.
Thanks =]