Output to file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Output to file

  1. #1
    Join Date
    Jan 2010
    Location
    Netherlands
    Posts
    12

    Question Output to file

    Hi,

    Is there a way to output data to a file without erasing its contents?

    Thanks

    Neil

  2. #2
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,276

    Re: Output to file

    Yes, by appending to the file.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  3. #3
    Join Date
    Mar 2010
    Posts
    11

    Re: Output to file

    I'll add some details on how to open the file to append the data to it:
    Code:
    FILE *f = fopen("your_file", "a");

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center