User Profile

Collapse

Profile Sidebar

Collapse
sonic91
sonic91
Last Activity: May 6 '14, 09:54 PM
Joined: Jan 29 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • i am able to R/W a single byte but how do i R/W multiple

    i have finally figured out how to read to a text box and write back to the file but i can only do it a byte at a time
    this is my read and write code
    Code:
    private void btnRead_Click(object sender, EventArgs e)
            {
                
                fs = File.Open(ofd.FileName, FileMode.Open, FileAccess.Read);
                BinaryReader br = new BinaryReader(fs);
                br.BaseStream.Seek(0x83,
    ...
    See more | Go to post

  • How to write the contents of a textbox to a hex file

    I have managed to make my program read and display my selected hex line as below:
    Code:
                    BinaryReader br = new BinaryReader(File.OpenRead(ofd.FileName));
                    string speed = null;
                    for (int i = 0x83; i <= 0x8f; i++)
                    {
                        br.BaseStream.Position = i;
                        speed += br.ReadByte().ToString("X2");
    ...
    See more | Go to post

  • sonic91
    started a topic Multiple binary readers on a button

    Multiple binary readers on a button

    I'm new to making hex editors and i have made a program that so far reads a selected line and displays it in a label.

    this is what i have so far:


    Code:
            public Form1()
            {
                InitializeComponent();
            }
    
            OpenFileDialog ofd = new OpenFileDialog();
    
            private void button1_Click(object sender, EventArgs e)
    ...
    See more | Go to post
No activity results to display
Show More
Working...