Is there some way to reopen streamwriter without it creating a new object to write to? Because at the moment, when WriteOdd is called, streamwriter is overwriting WriteEven, whi
Use the overload that asks you if you want to append
public StreamWriter(
string path,
bool append
)
http://msdn.microsoft.com/en-us/library/36b035cb.aspx
You can pass stream object to WriteEven() and WriteOdd() methods.
public void WriteOdd(StreamWiter writer)
{
for (int i = 1; i < array.Length; i += 2)
...
}