On Wed, Jul 23, 2003 at 11:39:28PM +0530, Sachin Hegde wrote: > Thanks for replyng for my bitwise query. > The reason why i need it is, coz I have to design an > application which has to parse a file which stores data > in hex.
I think you probably meant "parse a binary file". Hex is just a convenient way to represent bytes of binary data. > Then I have to display the contents in a simple User interface. > And also provide ways to change the file contents. So I thought > I could use Perl and a Tool like Tk for the interface. Unless the users are manipulating bytes at a very low level, you'd be better off unpacking (hint) the file into records, letting the users manipulate the records, and then packing (another hint) it back into the binary format when they've finished. > Any suggestions? % perldoc -f unpack % perldoc -f pack But once you've told us the rest of the story (what's really in that file?) the answer may change. -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]