i get index out of bound on line : stream.Read(fileBytes[i], 0, fileBytes[i].Length);
any help would be appreciated . thanks :)
string[] path = new string[15];
byte[][] fileBytes = new byte[10][];
for (int i = 1; i <= 10; i++) {
path[i] = @ "C:\Users\t-chkum\Desktop\InputFiles\1MB\" + i + ".txt ";
// readind data/*
FileStream stream = File.OpenRead(path[i]);
fileBytes[i] = new byte[stream.Length];
// Console.WriteLine(stream.Length);
stream.Read(fileBytes[i], 0, fileBytes[i].Length);
stream.Close();
}