JREF Homepage Swift Blog Events Calendar $1 Million Paranormal Challenge The Amaz!ng Meeting Useful Links Support Us
James Randi Educational Foundation JREF Forum
Forum Index Register Members List Events Mark Forums Read Help

Go Back   JREF Forum » General Topics » Computers and the Internet
Click Here To Donate

Notices


Welcome to the JREF Forum, where we discuss skepticism, critical thinking, the paranormal and science in a friendly but lively way. You are currently viewing the forum as a guest, which means you are missing out on discussing matters that are of interest to you. Please consider registering so you can gain full use of the forum features and interact with other Members. Registration is simple, fast and free! Click here to register today.

Reply
Old 8th September 2005, 02:27 PM   #1
balrog666
Eigenmode: Cynic
 
balrog666's Avatar
 
Join Date: May 2004
Posts: 2,545
*.dbf random access read/write

Does anybody know a quick and direct method to read from or write to random records of a dbase file via FORTRAN or C (particularly using the WATCOM open source compilers)?

The binary file structure includes a header based on the record description and then fixed size records.

I'm currently accessing files in either single byte or large-block direct access mode and parsing the records internally. Gets to be very slow or tedious with large files and I have to keep flushing the stupid Windows buffers to keep the operating system from losing track.

I sure there are better ways to do this (say in assembly or FOXBASE or MS odbc or some specific ungodly language/link) but they won't necessarily mesh with the rest of my programs. Also, I am not well versed enough in assembly to write it myself and don't want to rely on linking an unknown black box program into an important machine.

Am I nuts or what?

Just wondering. Thanks for reading.
__________________
A person who won't think has no advantage over one who can't think. - (paraphrased) Mark Twain

Diversity--When all colors and creeds believe exactly as liberals want them to. Or Else! -Coyote
balrog666 is offline   Quote this post in a PM   Nominate this post for this month's language award Copy a direct link to this post Reply With Quote Back to Top
Old 9th September 2005, 06:11 PM   #2
kevin
Graduate Poster
 
kevin's Avatar
 
Join Date: Aug 2005
Posts: 1,666
Re: *.dbf random access read/write

Quote:
Originally posted by balrog666
Does anybody know a quick and direct method
I found a Java class for working with dBase files.

http://www.americancoders.com/xBaseJ/

might also look at codebase, they support dbase files.

http://www.codebase.com/products/features/

Haven't used either one (I was looking for a Perl Module for accessing the files but didn't turn one up in a quickie search)
kevin is offline   Quote this post in a PM   Nominate this post for this month's language award Copy a direct link to this post Reply With Quote Back to Top
Old 9th September 2005, 08:14 PM   #3
balrog666
Eigenmode: Cynic
 
balrog666's Avatar
 
Join Date: May 2004
Posts: 2,545
Thank you! Codebase looks like exactly what I want!

I can't wait to try it out.
__________________
A person who won't think has no advantage over one who can't think. - (paraphrased) Mark Twain

Diversity--When all colors and creeds believe exactly as liberals want them to. Or Else! -Coyote
balrog666 is offline   Quote this post in a PM   Nominate this post for this month's language award Copy a direct link to this post Reply With Quote Back to Top
Reply

JREF Forum » General Topics » Computers and the Internet

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 10:39 PM.
Powered by vBulletin. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© 2001-2012, James Randi Educational Foundation. All Rights Reserved.

Disclaimer: Messages posted in the Forum are solely the opinion of their authors.