Lets say that i have a .txt file with the following text:
"
Hellow lol lololo
hahahahahhahaha
hyryryryryryryr
"

I want to add all that to the clipbourd so that I can paste it on an other application.

Can someone help. I know how to add string to a clipbourd but how would I add that

Thanks

If you can paste a String and the text from a file is a String, why can't you paste the String read from a .txt file to the clipboard?

Okai I guesss what i am tring to say is that how to I put all of this:

"
Hellow lol lololo
hahahahahhahaha
hyryryryryryryr
"

into one string with the line breaks?

Use the "\n" character where you want there to be line breaks.

Thannks NormR1

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.