Well, there's loads of formats for ebooks, but the big two are txt and pdf. They are also the easiest by far to do. PDF is well documented and you don't need to support all the fancier extensions like security enhancements, hyperlinks, etc.
Basically, as long as you can get text that...