Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pne (661)

  (email not shown publicly)

Honourary member and involuntarily prolific poster. Self-taught Perl hacker. Language geek.

Journal of pne (661)

Friday February 08, 2002
09:48 AM

Writing XBase files in C

[ #2722 ]

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").

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.