Ok, so let me take a simple example of what I'm trying to describe. This is probably a very "n00b" question, and yet I've ready plenty of programming books and they never have examples like this.
Let's say I have a program like
public class Program
{
private static List<string> _input = new List<string>();
public static void Main()
{
string line;
while((line = Console.ReadLine()) != null)
{
Program._input.Add(line);
}
return 0;
}
}
except want to modify it so that the next time I launch, the line
s I added to input
the previous time I ran the program are still there. Is there a way to do this (without writing the list to a text file or something like that)? If so, how?