I am reading from a file and writing to another file.
I am getting an extra carriage return, after reading
from source. How could i delete extra carriage
return at end of the file.

Any light shed would be helpful.

Thanks in advance