Can't paste open source code into program

Ken McGrath 1 Reputation point
2021-04-24T00:17:10.54+00:00

I'm new to program. I'm attempting to write a program in C# to communicate with an Arduino mega rev R3. I've made some success. There is open source code that I am trying to paste to no avail. I don't understand why the text editor won't allow me to do this. Will some please help me with this problem.
P.S. I tried to copy it to word but, word will not allow me to paste it.
Thank you for any help.

Developer technologies C#
{count} votes

3 answers

Sort by: Most helpful
  1. S.Sengupta 24,476 Reputation points MVP
    2021-04-24T14:15:40.163+00:00

    May be a license issue is restricting...

    0 comments No comments

  2. JiayaoZhu 3,926 Reputation points
    2021-04-26T08:17:16.03+00:00

    Hi,

    Thank you for your posting!

    Firstly, I agree with what @S.Sengupta said, it may be a license issue.

    Actually, pasting open source code into your own program is a longtime debate and this practice can be prohibited in some cases. The source where you tried to copy and paste code may be implemented strict copyright protection and that's why your text editor did not allow you to do this.

    Here is an article for why should not pasting open source code to your program:

    https://resources.whitesourcesoftware.com/blog-whitesource/copy-and-paste-code

    Thank you for your understanding and support!

    BR,
    Joan

    --------------------------------------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Ken McGrath 1 Reputation point
    2021-04-28T22:45:49.223+00:00

    I discovered what I was doing wrong. I would copy the code from my phone and email it to myself and then try to copy and paste it into C sharp. When I open the website "code project" on my computer I was able to copy and paste the code. I appreciate everyone's help. Once again thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.