I am working with c# and I have a list of type list where Family is a class with this structure:
public class Family
{
public Father father;
public Mother mother;
public int IdFamily { get; set; }
}
Father and Mother are also classes with their own attributes.
My list has got data about the families. I want to store all that data from the list into a txt files.
How I can do this using System.IO and StreamWriter?