Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > Re: create plai...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 180 of 212
Post > Topic >>

Re: create plain text file in c++

by Mathias <stroke@[EMAIL PROTECTED] > Jan 23, 2005 at 05:33 PM

If i want to write a plain text file i do it like this:

#include <string.h>

void Write2File(char* file,char* text)
{
 FILE* fp = fopen(file,"w+");
 fwrite(text,sizeof(char),strlen(text),fp);
 fclose(fp);
}

That would do the job i guess. 

-- 
You don't need a reason to help people!
 




 3 Posts in Topic:
create plain text file in c++
Ljungberg15@[EMAIL PROTEC  2004-12-03 02:50:21 
Re: create plain text file in c++
"Ralf" <info  2005-01-05 12:58:44 
Re: create plain text file in c++
Mathias <stroke@[EMAIL  2005-01-23 17:33:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 8:38:44 CDT 2008.