| JREF Homepage | Swift Blog | Events Calendar | $1 Million Paranormal Challenge | The Amaz!ng Meeting | Useful Links | Support Us |
![]() |
|
|
|
|||||||
| 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. |
|
|
#1 |
|
Eigenmode: Cynic
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 |
|
|
|
|
|
#2 |
|
Graduate Poster
Join Date: Aug 2005
Posts: 1,666
|
Re: *.dbf random access read/write
Quote:
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) |
|
|
|
|
#3 |
|
Eigenmode: Cynic
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|