Reading a text file in arduino

I'm working on a project wherein a mobile number is retrieved as a text document which i want to read on my arduino as i want to send a sms via gsm to that number. But i'm not able to read the text document in arduino. Kindly suggest how that can be done?

Also posted at:
https://arduino.stackexchange.com/q/50440
If you're going to do that then please be considerate enough to add links to the other places you cross posted. This will let us avoid wasting time due to duplicate effort and also help others who have the same questions and find your post to discover all the relevant information. When you post links please always use the chain links icon on the toolbar to make them clickable.

shweta333:
I'm working on a project wherein a mobile number is retrieved as a text document which i want to read on my arduino as i want to send a sms via gsm to that number. But i'm not able to read the text document in arduino. Kindly suggest how that can be done?

Show us the code (and use code tags when posting code on the forum) that you tried. Also explain where that text file is stored (SD card?).

the text file is in the PC not on a SD card

Your Arduino can't access files on the PC.

What you can do is using something like realterm and use tgst to send the file. Or even the copy command in a DOS window might be abke to do it.

If these options suite your needs is something else.