Geeks Talk

Prepare for your Next Interview




how we can read database file in C language?

This is a discussion on how we can read database file in C language? within the C and C++ forums, part of the Software Development category; Hi, As we can read and wirte to text file, is it possible to read databse .mdb file through C programme? And how? kavita...


Go Back   Geeks Talk > Software Development > C and C++

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-09-2008
Junior Member
 
Join Date: Jan 2008
Location: India
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
kavi12_nc is on a distinguished road
how we can read database file in C language?

Hi,
As we can read and wirte to text file, is it possible to read databse .mdb file through C programme? And how?

kavita
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-12-2008
Contributing Member
 
Join Date: Dec 2007
Posts: 48
Thanks: 1
Thanked 8 Times in 7 Posts
sk_seeker is on a distinguished road
Re: how we can read database file in C language?

.mdb is a microsoft access dB file format. To read this using C, you will need to do the following.

The first thing to do is to find out if this file format is an "open" standard i.e. can one look at Microsoft Access documentation and figure out the format of this file.

The second thing to do is to find out if the .mdb file is a binary or text file. I am not a Windows person, but if I were to guess, it would be a binary file. So, once the file format is known, one has to read the objects in the file format by opening the .mdb file and reading it in binary mode.

Hope that helps.

PS: If you the file format is an open standard, there might already be .mdb file browsers available on the net. So, if they are available, no need to roll your own
Reply With Quote
  #3 (permalink)  
Old 01-16-2008
Junior Member
 
Join Date: Jan 2008
Location: India
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
kavi12_nc is on a distinguished road
Re: how we can read database file in C language?

Thanks!
I have convert my .mdb file in txt, and can easily access that.

Thank you
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Detailed differance in C language and C++ language? prachidamle30 C and C++ 6 03-13-2008 08:42 AM
Read a file by Servlet Geek_Guest JSP 1 01-24-2008 04:18 AM
Migrate a .dat file to SQL database anilkumarnani SQL 1 09-25-2007 08:52 AM
Save Excel file using JDBC into a database supari Java 1 08-30-2007 07:56 AM
How to Unzip the file when there is only Read Permission Geek_Guest Unix/Linux 1 08-03-2007 01:12 PM


All times are GMT -4. The time now is 09:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved