Adding headers and footers to .TXT files

  • Thread starter Thread starter Azmat
  • Start date Start date
A

Azmat

Hello Everyone.


I have been assigned a task to add headers and footers to text files.
Basically the filename (on the header) and the page number (on the
footer). Along with this I also need to kill all dead white spaces.
For example some of these .txt files contain many carriage returns
after one another. I need to get rid of all the carriage returns and
replace them with ONE carriage return.

What is the easiest way to do this? Are there applications I can call
to edit text? Are there .dlls out there that will handle this?


thank you very much!

azmatmohammedAThotmailDOTcom
 
You can do a regular expression replace command to replace multiple CRLF's
with a single one.

As for pages... What size printer? What output? HTML? Lines per page?
Header size? The variables are endless....
 
Back
Top