My program(in WinForms) is some kind of testing of some subject. I have such structure, where I save my questions of this test:
Dictionary<int, Question> questions = new Dictionary<int, Question>();
public class Question
{
public Question(string q_text, Dictionary<string, bool> ans)
{
text = q_text;
answers = ans;
}
public string text { get; set; }
public Dictionary<string, bool> answers { get; set; }
}
I want to keep my questions(exactly Dictionary<int, Question> questions = new Dictionary<int, Question>();
) in binary file and every time I start the program, it will read from this. I've never worked with binary files.