Looks like a really overcomplicated way to create a text file. Why not port a word processor instead? Or OpenOffice? (obviously more work, but will appeal to a wider audience so more likely to attract bounty donations and, more importantly, users...)
--
moto