×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    105

    Question why can't save file in some S90, S60,3rd phone ?

    I make a file ,and save some setting info in it .
    CPlainText* text= CPlainText::NewL();

    filePath=_L("c:\\config.ini");
    //
    text->InsertL(0, Nums);

    text->ExportAsTextL( filePath,
    CPlainText::EOrganiseByParagraph, 0 );
    this work right,in my E50, with devlop sign.
    it can't save file ("c:\\config.ini") in N73 and other some S90 phone with there devlop sign i made.
    I want to know which path user can save file with in all S90 phone with its devlop sign?

    //User::LeaveIfError(fsSession.PrivatePath(filePath));
    and i test the program filepath .but it same E50 can do ,some other can't.

    how I can save program date in C:\\ ?? . thanks ~

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: why can't save file in some S90, S60,3rd phone ?

    should not be any problem to save it to C-root, so what kind of errors are you getting ?

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    20

    Re: why can't save file in some S90, S60,3rd phone ?

    You can write to your private directory and to c:\data (but that my require writeuserdata capability).

    If you wan't to save some program data (like, a config file in your case) use the app's private dir (RFs::CreatePrivatePath() and RFs::PrivatePath()).

  4. #4
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    105

    Re: why can't save file in some S90, S60,3rd phone ?

    thanks ..
    first I use this to get PrivatePath.
    TFileName filePath;
    RFs fsSession;
    User::LeaveIfError(fsSession.Connect());
    User::LeaveIfError(fsSession.PrivatePath(filePath));

    it work fine on my E50
    it seemed can't save file on N73 and I have not get the error code. it can to run and not save with no any error . how to get error code?
    then i use
    filePath=_L("c:\\config.ini");
    if work fine on E50, but not on N73 ..
    i think C:\\date\\... is same to c:\\ .
    i think N73's signe file havenot writeuserdate capability.

    but the problem still happen on other S90 phone which I signed use writeuserdate capability.

    know i run on memory and not on card same to this
    http://discussion.forum.nokia.com/fo...vatePath%28%29

    so it seemed not because the signed file .

    i use vs2003 and carbin.vs 2.0
    i use emulator to debug ,but every time debug over the emulator close . and then next debuge open ,it is slow. how dosn't close emulator to debug ?
    Last edited by wjcrr; 2008-08-25 at 16:58.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: why can't save file in some S90, S60,3rd phone ?

    RFs::PrivatePath provides a path, so you have to Append a filename if you want to do something with a file.
    filePath=_L("c:\\config.ini"); replaces the whole, it should be also OK, though PrivatePath is not necessary in this case.
    The confusion with c:\ and c:\Data is that the built-in File Manager shows c:\Data when it says that you see the root of the internal drive. So you will not see c:\config.ini with the File Manager, but you should see c:\Data\config.ini, you can try.

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    20

    Re: why can't save file in some S90, S60,3rd phone ?

    Quote Originally Posted by wjcrr View Post
    thanks ..
    first I use this to get PrivatePath.
    TFileName filePath;
    RFs fsSession;
    User::LeaveIfError(fsSession.Connect());
    User::LeaveIfError(fsSession.PrivatePath(filePath));

    it work fine on my E50
    it seemed can't save file on N73 and I have not get the error code. it can to run and not save with no any error . how to get error code?
    Error code is the return value of RFile::Open and other calls. store this value in a TInt variable and inspect its value.

    Quote Originally Posted by wjcrr View Post
    i think C:\\date\\... is same to c:\\ .
    How they can be the same, if they are different paths? If c:\data\ would be the same then a infinite loop would appear: c:\data -> c:\ -> c:\data -> c:\ ....

    Quote Originally Posted by wjcrr View Post
    i think N73's signe file havenot writeuserdate capability.
    Capability are specified in mmp file, they don't depend on the certificate used to sign them (only the phone validates your rights to use those capabilities with the certificate).

Similar Threads

  1. Replies: 13
    Last Post: 2009-03-18, 11:20
  2. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  3. How can i save a PNG file in mobile phone?
    By badsectoracula in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-09-14, 14:44

Posting Permissions

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