public void T2()
{
var fs = new FileStream(@"./File.txt", FileMode.Open);
byte[] buffer = new byte[500];
for (int i = 0; i < fs.Length; i++)
{
buffer[i] = (byte)fs.ReadByte();
}
// do somthing with bytes in buffer where I get another file location
// need to do this cause we want another File but
fs = new FileStream(@"./AnotherFile.txt", FileMode.Open);
// Do someting with file
// need to do this cause we want another File but
fs = new FileStream(@"./YetAnotherFile.txt", FileMode.Open);
// and so on
fs.Close();
}
public void T2()
{
var fs = new FileStream(@"./File.txt", FileMode.Open);
byte[] buffer = new byte[500];
for (int i = 0; i < fs.Length; i++)
{
buffer[i] = (byte)fs.ReadByte();
}
// do somthing with bytes in buffer where I get another file location
// need to do this cause we want another File but
fs = new FileStream(@"./AnotherFile.txt", FileMode.Open);
// Do someting with file
// need to do this cause we want another File but
fs = new FileStream(@"./YetAnotherFile.txt", FileMode.Open);
// and so on
fs.Close();
}