Is it in the text file? If yes, Use hexedit which you can find easily in google.
Main Topics
Browse All TopicsHow do I determine the the 1st byte and 12th byte is of this string?
I am a byte!
49 20 61 6D 20 61 20 62-79 74 65 21 <---this is the hex values of the above string
would the 1st byte simply be the "I" hex value 49 and the 12th "!" hex value 21 or is there some other way of figuring this out?
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also agreed with gdi67, can also try free hex editor-XVI32
http://www.chmaas.handshak
You can load the file and see the offset and corresponding byte ordering in sequence.
BIgendian and little endian are irrelevant when dealing with a string unless it is a pascal string - i.e. proceeded by a length byte and ONLY then if the lengthnof the string can be > 255 characters (i.e. longer than a value stored in a single byte. Your example clearly isn't a pascal string as it is 12 bytes long and not 73 (hex 49).
You had it right with your own explanation, but be aware that programmers usually count from 0 so when you refer to the first, second, third ... last byte it is unambiguous. When you refer to byte x you usually need to count teh first byte as byte 0.
Business Accounts
Answer for Membership
by: breadtanPosted on 2009-05-23 at 03:53:12ID: 24457433
Let look at some basic explanation first - What is byte string ki/Byte_st ring
ki/ Endiann ess#Exampl es_of_stor ing_the_va lue_0x0A0B 0C0D_in_me mory
/converter .html
- http://en.wikipedia.org/wi
In short it is just some data type to represent the encoding of the string. Typically the string is terminated with NULL character else it has some length indicating the string. That can be an indication
where is the first character. Note the first character is also commonly known as Most Significant Byte (MSB).
In addition, when storing the string in memory, it can be Big Endien or Little Endien. See this link
http://en.wikipedia.org/wi
This can be another way of knowing where is the MSB. If we know the system used and able to find out the memory address (e.g. programmatically printing out pointer or array address) of the character (e.g. if it is Big Endien, the MSB of the string or first character will be at the lowest memory). See the extract on the system support for "Endieness" below:
> Well known processor architectures that use the little-endian format include x86, 6502, Z80, VAX, Loongson, and, largely, PDP-11. Processors using big-endian format are generally Motorola processors such as the 6800 and 68000 and PowerPC (which includes Apple's Macintosh line prior to the Intel switch) and System/370. SPARC historically used big-endian, though version 9 is bi-endian (see below).
Sometimes the byte string may be from some memory dump (snapshot f memory from debugger), use a hex editor to open the binary file and the memory location will also be depicted. The analysis is as similar.
But another quick an easy approach (if we know that it is simply ASCII and rightfully should be some know sentences or phrases), you can send the string for conversion using tool. Check out this simple online tool - just that it need ":" to separate each hex character (can be easily done by replace <space> with ":" in editor)
- http://www.dolcevie.com/js
It really depends on the source of the string and encoding used for representation. If it is Unicode based, then it is word type (two byte per character) rather than the normal byte type. They are used normally for other languages...
Hope it helps