Jump to content

newbie question

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
benlockett

benlockett

    Newbie

  • Members
  • Pip
  • 4 posts
hi all i am very new to this.
i want to create a program that will open a .bin file and edit specific addresses in the hex dump and then save the file .
does this sound hard? am i wasting my time?
hope somebody can advise me
many thanks
ben lockett

#2
benlockett

benlockett

    Newbie

  • Members
  • Pip
  • 4 posts
hi all
if nobody can advise me on the above question could someone advise me on how to start from scratch to learn the basics.
many thanks ben

#3
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Well just start googling for tutorials on what you want to learn, I suggest these to start: :)
Visual C# .NET for Complete Beginners - a free programming course

C# Station: C# Tutorial Lesson 01 - Getting Started

C# / CSharp Tutorial
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#4
benlockett

benlockett

    Newbie

  • Members
  • Pip
  • 4 posts
thank you
will start reading!!

#5
benlockett

benlockett

    Newbie

  • Members
  • Pip
  • 4 posts
hi all i can get it to write to a file but it writes to the acsii of the file and i want it to write to the hex part of the file.
can anybody help me?
here is my code

File.Copy(textBox1.Text, textBox1.Text + "modified.bin");
FileStream binaryfile = new FileStream(textBox1.Text, FileMode.Open);
BinaryWriter Writer = new BinaryWriter(binaryfile);
BinaryReader reader = new BinaryReader(binaryfile);




Writer.Write("c9");
Writer.Write("9a");
Writer.Write("74");
Writer.Write("0c");
Writer.Close();


any help will be appreciated.
many thanks
ben