C++
ofstream
This data type represents the output file stream and is used to create files and to write information to files.
Syntax:ofstream variablename;
Example:#include
#include
using namespace std;
int main ()
{
char data[100];
// open a file in write mode.
ofstream outfile;
outfile.open("afile.dat");
}
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 122 / 158777645. Delta: 0.00220 с