Reading variable length records Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Hex Editing » Reading variable length records « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

james rollinson
Username: jr03017

Registered: N/A
Posted on Thursday, Feb 21, 2008 - 13:20:   

I create records in utf8 which end in x0d0a . I then load them into a database. I have an error with record 31772. How can I configure the text editor to 'goto' record 31772 ?
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Thursday, Feb 21, 2008 - 13:57:   

If you are referring to the record presentation feature in the hex editor WinHex, sorry, not possible, as it only supported fixed-length records. If you are referring to templates in WinHex, you may be able to use formulas to calculate the correct offset and the jump to it, or you follow all variable-length records until you get to 31772. (Templates are not optimized for that many records, though.)
Top of pagePrevious messageNext messageBottom of page Link to this message

james rollinson
Username: jr03017

Registered: N/A
Posted on Saturday, Feb 23, 2008 - 21:46:   

thanks - so is there a normal text editor within winhex which will give the line number, recognising the x0d0a ? We bought winhex not only as a hex editor , but also for its speed in opening enormous files.
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Sunday, Feb 24, 2008 - 1:11:   

No, there is no text editor in WinHex.
Top of pagePrevious messageNext messageBottom of page Link to this message

John Ahearne
Username: jahearne

Registered: N/A
Posted on Thursday, Feb 28, 2008 - 21:32:   

My UNIX/Linux skills are melting... since I'm back working on Windows again. But how about using a GREP function or AWK? Don't know about recognizing hex characters though.

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.