You are viewing our Forum Archives. To view or take place in current topics click here.
C# Help - Hexadecimal Preblems
Posted:

C# Help - Hexadecimal PreblemsPosted:

Experiment5X
  • TTG Senior
Status: Offline
Joined: Aug 14, 200915Year Member
Posts: 1,291
Reputation Power: 65
Status: Offline
Joined: Aug 14, 200915Year Member
Posts: 1,291
Reputation Power: 65
Allright here is my code
int offset = int.Parse(label1.Text);
                        filePath = o.FileName;
                        fs = File.Open(filePath, FileMode.Open, FileAccess.Read);
                        BinaryReader brv = new BinaryReader(fs);
                        brv.BaseStream.Seek(offset, SeekOrigin.Begin);
                        byte bv = brv.ReadByte();
                        brv.Close();


and it wont convert label1.Text to string because it is an offset, so i need a code to convert allow me to have a int in hexadecimal, maybe im just retarted and this is really simple, idk. But any help would be appriciated, thanks.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.