home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 13
/
CDA13.ISO
/
cdactual
/
demobin
/
share
/
program
/
C
/
ANSICPP.ZIP
/
EX10025.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-07-24
|
290 b
|
15 lines
// ex10025.cpp
// open and close member functions
#include <fstream.h>
main()
{
ofstream tfile; // an ofstream object without a file
tfile.open("test1.dat");
tfile << "This is TEST1";
tfile.close();
tfile.open("test2.dat");
tfile << "This is TEST2";
tfile.close();
}