I have:
ofstream file_ptr ;
and I need to pass a FILE * to a legacy C code.
How can I do this?
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20314938.html
Zones:
C++Date Answered: 06/22/2002 Rating: 9.0 Views: 0
I wish to check if a file exists i use the following line
outfile.open(FileName,ios::nocreate|ios::app);
Is this correct way to do it.?
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20419485.html
Zones:
C++Date Answered: 12/11/2002 Rating: 9.0 Views: 0
I have opened a file in C++ using ofstream operator.
bas_stream : public ofstream {
};
bas_fstream output;
output.open("myfile", ios::app);
and am writing data in to file using
output <...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20438988.html
Zones:
C++Date Answered: 02/09/2003 Rating: 7.8 Views: 0
I have a function here written in C++ that I need converted to C. If anyone knows of a program that can accomplish this for me, please let me know. All variables that are not defined inside the f...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20511764.html
Zones:
C++Date Answered: 02/14/2003 Rating: 8.2 Views: 0
Hi,
I've got a counter in a file that is regularly updated. Unfortunately, if the system is powered off, the counter is a few behind what it should be, and data is getting overwritten when the s...
http://www.experts-exchange.com/Programming/System/Linux/Q_21079849.html
Zones:
Linux DevDate Answered: 08/09/2004 Rating: 8.2 Views: 0
i got a third party library and one of the function takes an ifstream or ofstream for saving and reading data to/from a file. Consider that i can't modify that libray.. is there something i can do ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21092372.html
Zones:
C++Date Answered: 08/17/2004 Rating: 7.6 Views: 0
Does anyone know why the second open below fails? To make the second open work you must do it as
file_out.open(file_name, ios::in | ios::out);
file_out.open(file_name, ios::...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21180693.html
Zones:
C++Date Answered: 10/26/2004 Rating: 8.2 Views: 0
Is there anyway to insert an EOF into an output stream to truncate the underlying file?
I have code that reads a five-line text file in with ifstream, closes it, opens a stream for output with o...
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_21205210.htm...
Zones:
Windows MFCDate Answered: 11/15/2004 Rating: 9.4 Views: 6
I am learning C++, coming from K&R C. I have the follwoing snipet of code that won't work properly. Maybe you can assist.
#include <fstream.h>
#include <process.h>
ofstream printer;
printer.op...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_10007897.html
Zones:
C++Date Answered: 04/14/1997 Rating: 6.6 Views: 0
I'm working on a project using C++Builder, where we need to to create an object
that is global. We've declared the object in the project-file(eg.Project1.cpp), but it's not accessably in the Unit-f...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_10157784.html
Zones:
C++Date Answered: 05/05/1999 Rating: 8.6 Views: 0