CSCIO01-CO
Friday, July 20, 2007
Code Of C++
#include
#include
using namespace std;
int main () {
ofstream myfile ("example.txt");
if (myfile.is_open())
{
myfile << "This is a line.\n";
myfile << "This is another line.\n";
myfile.close();
}
else cout << "Unable to open file";
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
mArjo ClimberZ
Marjo Ampong
I am a nature lover...
View my complete profile
Blog Archive
▼
2007
(8)
►
September
(1)
►
August
(2)
▼
July
(5)
OUTPUT
Code Of C++
Autobiography
Exercise 3 Caption
Assignment
No comments:
Post a Comment