-1
static void Main(string[] args)
{
    int[] WS1_AF = File.ReadAllLines("WS1_AF.txt");
}

Not sure how to convert to integer from string

Filburt
  • 17,626
  • 12
  • 64
  • 115

1 Answers1

0
string[] readText = File.ReadAllLines("WS1_AF.txt");

and then convert it array of int

int[] WS1_AF = Array.ConvertAll(readText , int.Parse);
veena panakanapalli
  • 361
  • 1
  • 3
  • 19