when i print path[i,50] to console, the path gets printed. but when i try to read from that path to a stream ( FileStream stream = File.OpenRead(path[i,50]) i get index out of bound on the above line
string [,] path = new string [10,100];
byte[][] fileBytes = new byte[10][];
for (int i = 1; i <= 10; i++)
{
//defining path
path[i, 50] = @"C:\Users\t-chkum\Desktop\InputFiles\1MB\" + i + ".txt";
// Console.WriteLine(path[i,50]);
// readind data/*
FileStream stream = File.OpenRead(path[i,50]);
fileBytes[i] = new byte[stream.Length];
stream.Read(fileBytes[i], 0, fileBytes[i].Length);
stream.Close();
}
will be grateful for any help :)