Author |
Message |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Tue Nov 28, 2006 3:10 pm Post subject: Re: Store files in a certain dir |
 |
|
|
|
[code]ofstream file("c:\\mervbot\\database\\database.dat", ios::app);[/quote]
The double slashes is just escaping the one slash. |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Wed Nov 29, 2006 6:04 am Post subject: |
 |
|
|
|
now i could have found out about that myself.
Ima do that. thanks. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Nov 29, 2006 10:49 am Post subject: |
 |
|
|
|
Of course, to save relative to the MERVBot directory, you'd want to do "database\\database.dat". But I'm sure you could have found that our yourself too. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Wed Nov 29, 2006 1:47 pm Post subject: |
 |
|
|
|
ohyeah and the directory needs to be already created.
Else it will give an error and crate a blank file in the same folder as the plugin. Thanks! |
|
Back to top |
|
 |
|