View Single Post
Old 03-26-2012, 07:19 AM   #1
mattst began at the beginning.
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
Getting text length from mobi header.


Is there a simple way to get the text length from a .mobi file's header?

Eg. Seek to file position n, read 4 byes as big endian.

I've been trying to work this out from the Calibre source code, but not having any experiance of Python code and the source code having very few comments, this is proving to be rather hard.

If anyone knows of any C/C++ code which reads a .mobi file header that would be very helpful.

Many thanks.
mattst is offline   Reply With Quote