Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2007

    Overwrite the contents of a file.

    i'm creating a file in my program...im using the following code to overwrite the file each time the program is run.
    			KTempFilePath, EFileWrite));
    I need to re-write the contents of the file each time a new response is received from the server...but i find the Write method doesn't overwrite the contents, it just appends to the existing contents...how to overwrite the contents with fresh data each time?

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Tampere, Finland

    Re: Overwrite the contents of a file.

    You seem to be ahead of your class on this one...

    Which of the Write methods writes always at the end of the file. I'm sure that the ones that take a start position as parameter will at least try to write the data where you want. They may not succeed but that would be largely your fault.

    Other methods as SetSize or Seek would also be glad to help you. If only you would read the documentation and learn about them

Similar Threads

  1. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  2. File Browsing Problem
    By Marwa in forum Mobile Java Networking & Messaging & Security
    Replies: 13
    Last Post: 2007-10-10, 15:52
  3. please please help me show contents of file txt
    By finalcomp in forum Symbian
    Replies: 1
    Last Post: 2006-07-17, 12:36
  4. How do I output the contents of a .TXT file?
    By dennis_tort in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-02-10, 02:58
  5. Extract contents of AIF file
    By heuven in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-12-01, 16:48

Posting Permissions

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