Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i have a simulation running. each time the simulation cycles, data is collected.

things like, startPosition, Duration, CollisionCount,EndPosition, CycleNumber....

i was going to store theese in an arrayList, but it seems inadiquate for the job. is there any other data storage type that might be better? ive been glancing at hash tables,but as of yet, im not fully sure if they suit.

Posted
Are you using this data for calculations? How many simulations are going to be run per session? Why not just make your own class and store the data in there. Then if you need to, you can write calculation and output functions.
Posted

A simple approach would be to use standard file I/O to create a text file and to save your values as comma delimitted text within that file.

 

Give the file an extension of ".csv" and it'll open up directly into Excel as is.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...