Solved

Write output file as a FoxPro .dbf file instead of ASCII file

Posted on 2001-08-30
6
351 Views
Last Modified: 2010-08-05
I need to be able to have my C/C++ program output data not as an ASCII file, but as a .dbf file that can be recognized by FoxPro.  It cannot be done as a save as or anything.  It has to be done by writing to a file.
0
Comment
Question by:BradHuss
6 Comments
 
LVL 3

Accepted Solution

by:
kulina earned 50 total points
Comment Utility
I would create a data source (DSN), and use some ODBC API to store data. If you are familiar with SQL that shouldn't be a problem. In that case you need Microsoft FoxPro ODBC driver; comes with Visual Studio, thus may not be installed on every system.
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
I'm certain that FoxPro can import comma-delimited text files.  Can you explain why that won't work in your situation?  Or do you need help creating a CSV data file?

-- Dan
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
Comment Utility
If you real want create,add/change record/delete record
in .dbf file (w/o indexes), I can send you or post here
wy code for this: ~ 200 lines
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Expert Comment

by:AlexReser
Comment Utility
There are a lot of libraries in Internet that can do this.
Try to find it with any search engine.

Also you can write such library youself, because the format of DFB file is very simple. Visit www.wotsit.org.
0
 
LVL 11

Expert Comment

by:griessh
Comment Utility
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "kulina, DanRollins" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
Comment Utility
Per recommendation, force-accepted by
Netminder
Community Support Moderator
Experts Exchange

DanRollins: points for you at http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20280050
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now