Tag: hex文件

使用FileStream在C#中打开文件

我正在尝试打开我计划转换为hex的二进制文件但是我遇到了通过FileStream读取文件的问题, private void button1_Click(object sender, EventArgs e) { openFD.Title = “Insert a BIN file”; openFD.InitialDirectory = “C:”; // Chooses the default location to open the file openFD.FileName = ” “; // Iniitalizes the File name openFD.Filter = “Binary File|*.bin|Text File|*.txt”; // FIlters the types of files allowed to by chosen if (openFD.ShowDialog() != DialogResult.Cancel) { […]