Writing XBase files in C

pne on 2002-02-08T14:48:37

Been messing around a little trying to write XBase files in C. Mostly with the help of Erik Bachmann's excellent Xbase file format description.

Actually, it was a little fun. And after a little bit of trial and error, I was able to re-create the format of an existing file (which was the goal)... except that the header is not identical. There are a bunch of "reserved" fields which I fill with 00 but where the "real" file has some data, but I'm guessing that the bytes there are just garbage... that's certainly what it looks like with the field names (where one field looks like "foobar\0" and the next like "xx\0bar\0" and the next like "yyyy\0r\0").