array should be declared like this..
in the for loop you have hardcoded 0 value, it should be array length..
string[ ] aryText = "<1>,<2>,<3>,<4>,<5>,<6>";
string[] aryText= { "<1>","<2>","<3>","<4>","<5>","<6>"};
System.IO.StreamWriter objWriter = new System.IO.StreamWriter(FILE_NAME, false);
for (i = 0; (i <= 0); i++)
for (i = 0; (i <= aryText.Length); i++)
{
objWriter.WriteLine(aryText[i]);