[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2001-08-30
6
Medium Priority
?
384 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 200 total points
ID: 6442841
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
ID: 6443777
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
ID: 6444006
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:AlexReser
ID: 6444141
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
ID: 6865619
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
ID: 6886965
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

873 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