Arduino GSM Shield

Hello,
I have an Arduino GSM shield. Now, the standard protocol for sending a text message to an external phone from the GSM shield is that you must enter the phone number to send a message to and the message on the serial monitor. I would like to cut all of that out and have it so that it has the phone number and message preloaded into the code. Heres the code I think it matters with:

Serial.print("Enter a mobile number: ");
  char remoteNum[20];  // telephone number to send sms
  readSerial(remoteNum);
  Serial.println(remoteNum);
    
  // sms text
  Serial.print("Now, enter SMS content: ");
  char txtMsg[200];
  readSerial(txtMsg);
  Serial.println("SENDING");
  Serial.println();
  Serial.println("Message:");
  Serial.println(txtMsg);
  
  // send the message
  sms.beginSMS(remoteNum);
  sms.print(txtMsg);
  sms.endSMS(); 
  Serial.println("\nCOMPLETE!\n");

I want to make it so that "remoteNum" and "txtMsg" are predefined.
Thanks, IA-BL

Now, the standard protocol for sending a text message to an external phone from the GSM shield is that you must enter the phone number to send a message to and the message on the serial monitor.

Says who? That isn't standard at all. That's a test procedure.

I want to make it so that "remoteNum" and "txtMsg" are predefined.

Certainly. Permission is granted.

Did you have a question?

What happened when you tried it?

Certainly. Permission is granted.

Did you have a question?

My question was that how would I pre-define "remoteNum" and "txtMsg"?

My question was that how would I pre-define "remoteNum" and "txtMsg"?

char *remoteNum = "thePhoneNumberGoesHere";
char *txtMsg = "Some text message data goes here";

PaulS, where would I put that code?

IA_BL:
PaulS, where would I put that code?

In your sketch.

In your sketch.

Where in my sketch like before setup or in the loop

Where in my sketch like before setup or in the loop

Since you've only posted a snippet, all I can say is yes.