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
 
Does anyone have a solution for this??? ANY help woudl be appreciated...

thanks!
 
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....
 
Jason,

thanks for your response. There is a program called MikTeX
(http://miktex.org/). I want to call this program via my C# Windows
App...any suggestions??

thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top