in reply to Replacement and conversion of flat file text documents
To be honest I would suggest that you start with something tried and tested like txt2html which has seemingly been around for ever, you may need to make some adjustments to the output but it generally seems to do the right thing.
/J\
|
|---|