Thread: Output A File

  1. #1
    JCC
    Guest

    Output A File

    Instead of printing out the results on the screen, how do you dump the contents of buffer to a file in C++ (Unix env)? I've searched for examples on the net...but all I get is ofstream stuff.
    Don't seem to work under Unix:-(

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    ofstream::write?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    In VC++ 6.0, there are project settings which allow you do do that in the debug version.

  4. #4
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856

    Re: Output A File

    Originally posted by JCC
    all I get is ofstream stuff.
    Don't seem to work under Unix:-(
    Do you mean that ofstream doesn't work in unix for you? Can you post the code you're trying to use? Perhaps you're just doing something wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  5. Simple File Creation Algorithm
    By muffin in forum C Programming
    Replies: 13
    Last Post: 08-24-2001, 03:28 PM