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

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.

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);
}

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

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.