Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read the FAT in C

Status
Not open for further replies.

john829

Programmer
Sep 14, 1999
10
US
I am trying to write some utilities, and on e of the things I need to do is add the possibilty to recover deleted files. So I need to examine the FAT table (this will be in windows) and possibly examine clusters on the hard disk. Any thoughts on how I can accomplish this in C or C++?
 
[NORMAL SOLUTION]
You can use the function from "DIR.H" or "DOS.H" as: findfirst(), findnext() and a builtin strucre ffblk.

[ADVANCED SOLUTION]
By absread() function which is used to read the desired secters(512 Kb) of disks, but must know the hardware oriented conceps of C, i.e. bits concepts, bitfield operators [&, |, !, ~, ^ etc] or you must know the detail of fat structure. For this purpose you can reffer complete MS-DOS manual or any good book.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top