2 Questions: replace text in txt file, add text to end of txt file

so...

Lets assume I have a text file.

The text file contains multiple "#" symbols.

  1. I want to replace all thos "#"s with a STRING using DOS/Batch
  2. I want to add a certain TEXT to the end of each line.

How can I do this WITHOUT aid of sed, grep or anything linux related ?

JAVA, PERL, C/C++, ??? GnuWin32