If I'm reading this correctly, why don't you just create the txt file yourself. Open a console and type:
Then use the formula "%X"%<number> where <number> is replaced with the number your trying to convert.
EXAMPLE:
Code:
{pyn§trom} ~ # python
Python 2.5.1 (r251:54863, May 4 2007, 16:52:23)
[GCC 4.1.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> "%X"%44
'2C'
>>> "%X"%256
'100'
>>> "%X"%128
'80'
>>> "%X"%72
'48'
>>> "%X"%34
'22'
>>> "%X"%197
'C5'
>>>
Take it a little further and automate the process with a while loop.