Discussion Board

Results 1 to 5 of 5

Thread: File append

  1. #1
    Registered User
    Join Date
    Sep 2011

    Post File append

    hi.i want to create a log file for my project and write all the exceptions in to that file..mycode is working in emulator but not in mobile..what is the reason????
    i dont know how to append to an existing file..so every time when i need to append exception to logfile i just read that logfile and content is stored into a stringbufer and then append the last exception to string buffer..then i rewriting the file..is it a correct method or not????
    2nd way i created logfile and everytime when an excepion occurs i append into the stringbuffer and when my application exit all the exceptions in the string buffer is written to the logfile..

    suggest me the correct way....
    pls help me to complete my project..am confused

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011

    Re: File append


    Have you used the information on this page?


    Also make sure to check the protected methods
    Last edited by skalogir; 2011-10-11 at 14:08.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    The Capital of INDIA

    Re: File append

    Hi and welcome to the Nokia Developer Boards !!!

    You need not to worry about the issues you are facing, as the experts and developer are always around you to help.

    Anyways, before you would like to create the log file and write the entire log in this I would recommend you following points:

    1. First try to find out the real cause and prabably the location of the issue.
    2. You can share the details about the issue/error/exception here
    3. Also let us know the developer plateform details about you are working with

    Check and revert,
    Thanks with Regards,

    R a j - The K e r n e l

    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Registered User
    Join Date
    Sep 2011

    Re: File append

    thanks for ur reply bosss....

  5. #5
    Regular Contributor
    Join Date
    Mar 2011

    Re: File append

    here is the code,which will help you,it is perfectly working at my side....

    fc is the fileconnection object and os is the outputstream object

    os = fc.openOutputStream(fc.fileSize());

Similar Threads

  1. append to file
    By sunny_singh in forum Symbian
    Replies: 12
    Last Post: 2013-01-03, 12:58
  2. append the date and file name..
    By maheskumar in forum Symbian
    Replies: 23
    Last Post: 2011-01-21, 03:17
  3. Append string on a file
    By binsint in forum Mobile Java General
    Replies: 2
    Last Post: 2011-01-07, 15:05
  4. How to append 2 wav file
    By Bubble in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-01-04, 09:58
  5. append ini file to SIS
    By imzadi_il in forum Symbian
    Replies: 1
    Last Post: 2006-09-20, 16:46

Posting Permissions

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