Buffer to File

This is a discussion on Buffer to File within the C Programming forums, part of the General Programming Boards category; can you anyone explain me how to convert buffer data to an file ?...

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    20

    Buffer to File

    can you anyone explain me how to convert buffer data to an file ?

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    Sure:

    1) Open a file in binary mode.
    2) Write the buffer to file.
    3) Close the file.
    4) Lather, rinse, repeat.
    Code:
    #include <ip.hpp>

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    40
    This tutorial is useful, if this is not enough information for you, you can search in google-google is our friend.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  4. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  5. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21