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 / Writing whole arrays to a file?

Author
Message
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 28th Feb 2010 20:04
Ok, I have been writing the contents of an array to a file by looping through it like this pseudo-code:



Now my question is: Is it possible to write a whole array to a file at once?
For example: Let's say you have an array of an object structure.
Instead of cycling through this array and save each single element one could write the array to a file with one command (if possible).

I prefer fstream, but DarkGDK file commands are acceptable.

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 28th Feb 2010 23:35
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 1st Mar 2010 04:32
Thanks!



Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.

Login to post a reply

Server time is: 2024-10-05 16:28:27
Your offset time is: 2024-10-05 16:28:27