Do you mean that the text is in a file, and you want to copy the file contents to the clipboard? If so, what version of Windows are you using? If you're on Vista, then you can use the CLIP.EXE that's built in. On my Vista Home Premium it's in c:\Windows\System32\clip.exe. Here's its Help:
Redirects output of command line tools to the Windows clipboard.
This text output can then be pasted into other programs.
/? Displays this help message.
DIR | CLIP Places a copy of the current directory
listing into the Windows clipboard.
CLIP < README.TXT Places a copy of the text from readme.txt
on to the Windows clipboard.
If you're on XP or earlier, try Horst Schaeffer's Cliptext
. Cliptext FROM a file doesn't work under Vista, but is fine on XP; Cliptext TO (i.e., contents of clipboard written to a file) works on both XP and Vista.
As for optionally removing the blank line(s), you probably need another utility. Take a look at Clippy
(the Web site is up and down like a yoyo) or Boxer Software's TextMonkey
. I hav the Pro version, the Lite version is free but you'd need to check if it does what you want. Both these would remove all
blank lines. If you need more control than that, you're probably better off with an editor.