You could store your collection of structures in an XML file, which is structured text.
Here is a very quick example to get you started:
using System.Collections.Generic;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
public class Student {
[XmlElement("id")]
public int id;
[XmlElement("name")]
public string name;
}
[XmlRoot("students")]
public class Students {
[XmlElement("students")]
public List<Student> students = new List<Student>();
}
class Program {
static void Main(string[] args) {
Students s = new Students();
s.students.Add(new Student() { id = 1, name = "John Doe" });
s.students.Add(new Student() { id = 2, name = "Jane Doe" });
XmlSerializer xs = new XmlSerializer(typeof(Students));
using (FileStream fs = new FileStream("students.xml", FileMode.Create, FileAccess.Write)) {
xs.Serialize(fs, s);
}
}
}
You will get something like:
<?xml version="1.0"?>
<students xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<students>
<id>1</id>
<name>John Doe</name>
</students>
<students>
<id>2</id>
<name>Jane Doe</name>
</students>
</students>