×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Banglore,India
    Posts
    156

    read model no from model.txt

    Hi,
    "Z:\\resource\\versions\\model.txt" --here in this path model nname is stored in s60 3rd fp1.
    while i am reading model name from from this specific path . and showing in information note.at that time it is displaying me model number as well as boxes .
    can any buddy help me out how to read only model num without boxes.


    thanks in advance

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    150

    Re: read model no from model.txt

    can u put the code you r using to read the file .. which API you r using?

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    444

    Re: read model no from model.txt

    The boxes you are getting is nothing but the garbaged text.Check your variable value which you have model text.

    Also another alternative for fetching the model name is here

    Regards,
    Kavit.

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Banglore,India
    Posts
    156

    Re: read model no from model.txt

    code is very simple ..
    here is my code...
    you can see that model.txt in that path.

    CAknInformationNote* informationNote = new ( ELeave ) CAknInformationNote;

    TBuf16<40> ModelName16;
    _LIT(KModelFilename,"Z:\\resource\\versions\\model.txt");
    RFile file; file.Open(CCoeEnv::Static()->FsSession(),KModelFilename,EFileRead); TBuf8<40> temp1;
    TInt err1 = file.Read(temp1);
    file.Close(); CnvUtfConverter::ConvertToUnicodeFromUtf8(ModelName16,temp1);
    informationNote->ExecuteLD(ModelName16);

  5. #5
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Banglore,India
    Posts
    156

    Re: read model no from model.txt

    thanks Kavit for ur reply.
    i have already retrieved all phone info by using CTelephony class.
    its easy to get model number by reading only model.txt file, thats why i am trying.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    150

    Re: read model no from model.txt


Similar Threads

  1. How To read SMS and dont change its status?
    By -=DeathDealer=- in forum General Messaging
    Replies: 2
    Last Post: 2006-09-02, 07:56
  2. Replies: 5
    Last Post: 2006-08-02, 12:35
  3. Read from socket never blocking
    By barnabyg in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-07-06, 13:45
  4. Problem with SDK 2.1 VB read sample?
    By lexthor in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-09-19, 02:46
  5. Replies: 0
    Last Post: 2002-11-15, 06:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •