|
From: Ramana K. <ra...@my...> - 2001-02-17 05:27:39
|
To write to a file you do this:
#include <fstream.h>
//...
ofstream out ("<filename goes here>");//there should be a variable showing
the autoexec.bat's whereabouts, otherwise use c:/autoexec.bat
out << "<writing goes here>";
//you use the out (you can call it anything) like you would use cout
out.close();
//...
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of i_suck _ducks
Sent: Saturday, 17 February 2001 12:11 PM
To: dev...@li...
Subject: [Dev-C++] Write to a file...
Hey people! i want to make a program that can modify
my autoexec.bat file. can anyone help??? thanX
- PrOgRaMmInG lOsEr
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|