I want to do something like the following:
int loopCount = 0;
while (loopCount != 18)
{
StreamWriter DBSplit + loopCount =
new StreamWriter(@"L:\BananaDB\DBFILE" + loopCount + ".txt");
loopCount++;
}
What is the best way to do this? At the moment the problem is "DBSplit + loopCount"
. While yes it is because I'm trying to add an int to the StreamWriter variable, I cannot use string either. Is there any solution?