- Joined
- Dec 5, 2008
- Messages
- 608
- Reaction score
- 70
Re: dyoWriter
Use two class : Objects and Movers.
Then Create two list : List<Objects> lstobjects = new List<Objets>();
List<Movers> lstmovers = new List<Movers>();
Annd when you read the dyo file, add each objects/movers into their list, then you will not be limited (if for exemple you're using array with limited number of value. (and with list you can reorder the content ^^.
To write in a "readable file" you just have to make a loop...
Think that if somethink have 64 bytes when you read it, it need to have 64 bytes when you wrote it etc.
Use two class : Objects and Movers.
Then Create two list : List<Objects> lstobjects = new List<Objets>();
List<Movers> lstmovers = new List<Movers>();
Annd when you read the dyo file, add each objects/movers into their list, then you will not be limited (if for exemple you're using array with limited number of value. (and with list you can reorder the content ^^.
To write in a "readable file" you just have to make a loop...
Think that if somethink have 64 bytes when you read it, it need to have 64 bytes when you wrote it etc.

