Re: INI file and NUM files
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
On Thu, 31 May 2007 20:16:01 -0700, reen_haz
<reenhaz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
NUM file is a file that stores binary data...
We don't know how this binary data is structured...
You might consider the CFile code I posted in this thread.
If you want to store several instances of the same data structure, you
might write a number that stores the count of instances, and then all
the instances, e.g.
<count>
<data1>
<data2>
...
<dataN>
So when you read data back, you can read the count value, resize an
array with this count value, and then do a for loop to read all data
instances in the array.
MrAsm
.
Relevant Pages
- Re: Useful class for binary data storate and manipulation
... > I'm trying to decide on a structure to store Message Data. ... > contains binary data of arbitrary format and length. ... > some sort of array of bytes containing whatever the message is. ... It has no functionality below the byte level, if you need to be able to set ... (comp.lang.java.help) - Re: Finding the nearest match without reusing results
... comparing an array with a value generates an array of Trues and ... Any diff with wrong State or with used Store is implicitly zeroed out. ... Each must be larger than the absolute value of the maximum Sales ... go.....it just needs to return the closest match. ... (microsoft.public.excel.programming) - Re: read keyboard input and storing in an array?
... > I'm trying to store user input in an array, ... You have the beginnings of that logic already since your prompt tells the ... 201st value since the array only has room for 200 values. ... This will force you to store the int values as Integer ('Integer' ... (comp.lang.java.help) - Re: Challenge: reading ascii data
... to store all the data before producing any output. ... would be bad practice in terms of memory consumption to use a standard ... So I use hashes to create a two-level "sparse array", ... Well the original problem definition was: ... (comp.lang.fortran) - Re: attempting an actual game...
... >>> and inflexible by the absurd decision to use a bit array for square ... as then one has 8 bits in which to store a color and a few flags ... Using a 2D int (or, ... > Change direction and you may eventually complete a game. ... (comp.games.development.programming.misc) |
|