public static void SelectFile(string file)
{
byte[] bytesToBeEdit = File.ReadAllBytes(file);
// Тут_творим_с(файлом, чтохотим);
}
byte[] bytes = new byte[1000];
using(var stream = File.OpenRead(fileName))
{
int count = stream.Read(bytes, 0, 1000);
}
var fileInfo = new FileInfo(fileName);
int chunkSize = fileInfo.Length / 10;
byte[] bytes = new byte[chunkSize];
using(var stream = fileInfo.OpenRead())
{
int count = stream.Read(bytes, 0, bytes.Length);
}