views:

759

answers:

4

I have a FAT12 image file and I have to open it and read it. I would like to view this image file(directories/files with in) so I can have an idea of what outcomes I should be getting. Anyone know of a good software that would let me view this FAT12 image file? Also can someone guide towards the right directions when trying to read the content of this image file?

A: 

On Linux you can just mount it using the loopback device.

Brian C. Lane
I have to open/read the file in C.
Jose Vega
+4  A: 

There are a number of open source FAT filesystem implementations around.

One which I think has nice clear portable code, though there are bugs, particularly in FAT12 implementation, is http://www.larwe.com/zws/products/dosfs/index.html.

Will Dean
+1. I've been using Larwes implementation and I can also recommend that. Very easy and straightforward to use.Which FAT12 bugs do you have in mind?
Jonas Gulle
A: 

There is Segger files system called emFile. It is portable fs, i have emFile working on number of embedded operating system with minimal (almost none, a few simple function that need to be implemented for each os) development effort. It's not expensive as well,i mean if you doing something for fun you probably don't want to spend money at all , but for commercial use it's cheap.

Ilya