Enter Keywords:
1 - 10 of 56(0 seconds)
Sort By:
 
I have: ofstream file_ptr ; and I need to pass a FILE * to a legacy C code. How can I do this?
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.?
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 <...
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...
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...
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 ...
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::...
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...
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...
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...
Zones: C++Date Answered: 05/05/1999 Rating: 8.6 Views: 0