Can someone help me out writing hex string to file hex address from textbox?
This is my current code:
private void button1_Click(object sender, EventArgs e)
{
BinaryWriter wr = new BinaryWriter(File.OpenWrite(listBox1.SelectedItem.ToString()));
for (int i = 0x83C410; i <= 0x83C417; i++)
{
wr.Write(textBox1.Text);
}
wr.Close();
}
But it doesn't work after i click button nothing happens to file, even it doesn't show any error which is kinda strange.