DW> Hi all , Im trying to put an Idea into a working
DW> program, its basically a Flash Card program , for
DW> learning the German language.
DW> I need a way of getting/storing strings from a
DW> file and their English meanings, eg Die Milch = the Milk
DW> Now do I set it up as a Structure and get 1 word from
DW> the file at a time, or a linked list and get the
DW> lot at once, or maybe another way.
DW> I would prefer to do this in dos. I use BC++ ver 3.1
DW> Any advice and or examples would realy be helpfull,
DW> as This is a bit bigger than what I would normally
DW> tackle. thanks in advance
Obtain Binkley 2.50 or BTPE from somewhere (3:711/934 has them
for FREQ) for example code for someone tackling this task. I
would say that it depends on the size of your file. If it is a
10k file, I would do an fseek() on the file to find the length,
or store the length upfront, and then do a malloc, and then
read the entire file in at once (to avoid memory fragmentation
cf linked list). BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|