Archived

This topic is now archived and is closed to further replies.

Storing Large Amounts Of Data...

This topic is 5015 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is the best method for reading and writing large amounts of data from files in C++ with DirectX 9 (extended/or not)? I am currently reading the data from text files using fscanf, this appears tobe fine for now but as i will need more and more information about directx items int he future, the command will get extensive. What is the best way of structuring the data in the file. XML/HTML/Structure writing. I am reading the variables from files straight into structures within classes. regards, Ace.

Share this post


Link to post
Share on other sites
it sounds as though you are thinking about certain circumstances and are worried about it.

are you wanting to be loading stuff continually (eg loading a level as you move through it) or loading a whole chunk of stuff quickly at one time (eg loading a level before beginning playing). You''ll need to give more context. XML isn''t the most concise of formats. It compresses well but then you have to uncompress it too.

look at zhang''s code from the March edition of C/C++ User''s Journal for how to link up classes with XML format.

Share this post


Link to post
Share on other sites