How do you Save Binary file with some requirements?
Posted on 2003-10-23
I have one more question about SavingbinaryFile. I have this function, void saveBinaryFile( string text, string filename), where the parameter filename is the name of the input or the output file, as the case may be, and where the parameter text is the hexadecimal text to be written to the file. I am doing the whole project called Text Editor and SaveBinaryFile is one of my functions. Within the TextEditor, the hex bytes can be edited, and upon saving the binary file (void saveBinaryFile(string text, string filename), it should convert the hex bytes back into binary and write the binary file....i am thinking using "Integer.parseInt(hexByte, 16) for the convsion...any help will be appreciated..
Thanks a lot