Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Can i use filestream in dark GDK for save game purposes (in 2D games) ??

Author
Message
jayRon
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location:
Posted: 3rd Mar 2011 05:51
thx in advance
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 3rd Mar 2011 14:57
i dont see why not

jayRon
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location:
Posted: 5th Mar 2011 13:04
awww i now having this problems: ofstream undeclared identifier.. even though i have #include <fstream>
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: &lt;script&gt; alert(1); &lt;/script&gt;
Posted: 5th Mar 2011 16:54 Edited at: 5th Mar 2011 16:55
try

also, im not sure, but i think there are other headers that you need to include

Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 6th Mar 2011 03:19
To do file operations using ofstream and ifstream, you only need the fstream include file.


TerryRussell
13
Years of Service
User Offline
Joined: 11th Dec 2010
Location: Chichester, UK
Posted: 6th Mar 2011 13:32
jayRon , you can use filestream or you could use string.

I suspect that what you are asking is how to do it, so here's an example or two:



(If using filestream objects, use .str() instead of .c_str() of course)

Amazing Simulation
www.amazing-forum.com

Login to post a reply

Server time is: 2024-10-02 15:20:10
Your offset time is: 2024-10-02 15:20:10