read a text file in sms ...?
| Mon, 2007-04-23 08:11 | |
|
|
I wrote code which genreates c:\\x.txt file in mobile device. I want to read that text n send that text file as a message to static no , I read some document and also sms examples. I got to know that i can do by that socket programming,but i dont have much idea about that ,how to use in my code , Can any body give me step by step idea.....
Thanks in advance Chirag |






Forum posts: 20
The code is look like this
void CMobInfo::LogToFile(const TDesC& aText)
{
RFs fs;
fs.Connect();
RFile logger;
if(iFirstTime)
{
logger.Replace(fs,_L("c:\\moveo.txt"), EFileShareAny | EFileWrite);
iFirstTime = EFalse;
}
else
logger.Open(fs,_L("c:\\moveo.txt"), EFileShareAny | EFileWrite);
regards
Chirag
Forum posts: 128
If I am getting u right then I think after read the contents of the file u can send that data thru SMS. Use SMSSend example available on forum.nokia.
Imp classes viz:
CSMSClientMTM , CBaseMTM,CSMHeader etc . Read abt these in SDK .
Hope it'll help you.
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 20
Thaks for your reply , i read that also .I am confused that which process is better means if i can right open file and read kind of program and read that contains of text file, or i can add in my existing code with this all sms api or say class .
How to do i write ? is it possible to write like that? any examples accept sms forum examples?
Forum posts: 128
I am really very sorry but I am not getting you . Can you pls explore a bit more...
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 20
Chirag
Forum posts: 128
Ok still there is no problem . Just read the contents of that file and pass it to sendSMs(). To send SMs use eariler defined classes and search the forun dere is lot's of stuff regarding this.
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 20
regards
Chirag