Take the following as an example,
--
smith 34 160
jones 26 176
blake 29 166
---
In C,
#define MAXRECORDS 100
typedef struct
{
char name[30];
int age;
int height;
}DATA;
DATA *users = malloc(MAXRECORDS * sizeof(DATA));
then read the file so that individual records can be easily accessed using a numerical index. I use fscanf in this case and fprintf for the opposite. These functions have made it relatively easy to manage my data in C. As Blitzmax evolves I wouldn't mind migrating.
--
smith 34 160
jones 26 176
blake 29 166
---
In C,
#define MAXRECORDS 100
typedef struct
{
char name[30];
int age;
int height;
}DATA;
DATA *users = malloc(MAXRECORDS * sizeof(DATA));
then read the file so that individual records can be easily accessed using a numerical index. I use fscanf in this case and fprintf for the opposite. These functions have made it relatively easy to manage my data in C. As Blitzmax evolves I wouldn't mind migrating.