read a text file in sms ...?

Login to reply to this topic.
Mon, 2007-04-23 08:11
Joined: 2006-08-19
Forum posts: 20
  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

Mon, 2007-04-23 08:13
Joined: 2006-08-19
Forum posts: 20
Re: read a text file in sms ...?

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
Mon, 2007-04-23 08:32
Joined: 2006-04-19
Forum posts: 128
Re: read a text file in sms ...?
Hi chirag

   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".

Mon, 2007-04-23 10:25
Joined: 2006-08-19
Forum posts: 20
Re: read a text file in sms ...?
Hi,

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?
Mon, 2007-04-23 11:24
Joined: 2006-04-19
Forum posts: 128
Re: read a text file in sms ...?
Hi

  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".

Tue, 2007-04-24 05:58
Joined: 2006-08-19
Forum posts: 20
Re: read a text file in sms ...?
Hi , I mean i have already code where i am executing that file in mobile device rom say c:\x.txt. I want to read that and send sms to specific no.so how do i write sms coding in mu existing part of code . Any examples regrading this


   Chirag
Tue, 2007-04-24 06:17
Joined: 2006-04-19
Forum posts: 128
Re: read a text file in sms ...?
Hi

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".

Tue, 2007-04-24 11:37
Joined: 2006-08-19
Forum posts: 20
Re: read a text file in sms ...?
ok Thaks i will do that .....


regards

Chirag
  • Login to reply to this topic.