×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    122

    write file problem

    Hi,
    I am try save file with next code:
    RFile file;
    RFs fsSession;
    fsSession.Connect();
    _LIT(FileName, "C:\\file.dat");
    TInt err=file.Open(fsSession,FileName,EFileWrite|EFileShareExclusive);
    if (err==KErrNotFound) // file does not exist - create it
    {
    err=file.Create(fsSession,FileName,EFileWrite|EFileShareExclusive);
    }
    file.Write(_L8("Some thing you wanna write..."));
    file.Close();
    fsSession.Close();

    it's work fine with emulator, but dont compile for device.
    i receive next message:

    undefined reference to `RFs::Connect(int)'
    undefined reference to `RFile::Open(RFs &, TDesC16 const &, unsigned int)'
    end etc..
    Where is my problem?

  2. #2
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    122

    Re: write file problem

    problem was resolved... :))

Similar Threads

  1. Cannot write to a File
    By RLord321 in forum Symbian
    Replies: 7
    Last Post: 2008-12-18, 18:15
  2. write and read a TInt data from the file
    By billqu in forum Symbian
    Replies: 2
    Last Post: 2004-12-27, 15:10
  3. problem while making sis file
    By kunal_the_one in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-08-04, 03:36
  4. JAD file problem with 3100/6100
    By rkanhere in forum Mobile Java General
    Replies: 3
    Last Post: 2004-06-24, 19:07
  5. Replies: 1
    Last Post: 2004-03-14, 21:15

Posting Permissions

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