|
-
Sep 2nd, 2001, 09:43 PM
#1
PHP Code:
ofstream fout("file.txt", ios::app); //for append
fout<<"some text";
fout.close();
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Sep 2nd, 2001, 10:33 PM
#2
Fanatic Member
Thank yew
Alcohol & calculus don't mix.
Never drink & derive.
-
Sep 3rd, 2001, 08:46 AM
#3
Fanatic Member
How?
I think I put the code in a wrong spot... It just like a LOOP in VB. I get like 10 copies of the text every time I click the button, and yes it appends... But where do you put the:
Code:
ofstream OP("test.txt",ios::app);
...

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Sep 3rd, 2001, 09:07 AM
#4
Try:
Code:
ofstream OP("test.txt", ios::app);
for(int i=0; i<10; i++)
OP << "My Text"
OP.close();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|