0

Hi!

I want to read a dbf file in c/c++/vc++. Which platform would be ideal? And how should I go about it?

Regards,
Nidhi

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by Salem
0

Hi!

Hi

I want to read a dbf file in c/c++/vc++. Which platform would be ideal?

Any platform will do it.

And how should I go about it?

Regards,
Nidhi

Understand the database file format. That's most of the battle -- and in the case of .dbf, it's more of a skirmish.

0

To start with, the following code did not work.

#include<stdio.h>
#include<conio.h>
void main()
{
	FILE *f1;
	char c='y';
	printf("Data Output \n");
	f1 = fopen("Phile.DBF","r");
	while ((c=getc(f1))!=EOF)
	{
		if (c = '\r') 
		{
			printf("\n");
			while (!kbhit());
		}
		printf("%c",c);
	}
	fclose(f1);
}

Edited by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.

0

Why not? What was it supposed to do? What did it do? How does it handle the .DBF file format?

0

my screen is filled with a special character - all over. does not stop.

i think i need to convert it to txt.....any freeware for that?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.