Well, I have just written all of this code, and then made lots of edits, compiled and when I run it, I get STATUS_ACCESS_VIOLATION. And I can't work out where the error lies. It is a very basic Database program BTW.
Here is the code:
http://pastebin.com/jLktEL3C
And here is the file database/fruit.tbl (You must create this file first)
http://pastebin.com/NzVxSyWj
Thanks in advance.