Reading the post again I find it possible that your question has nothing to do with hex editors, but that you want to read and write a specific range of byte values from a binary file. If so, you can do that using the FileStream class. To convert bytes to String and vice versa you need the Encoding class.