They say .... about FAT32

May 21, 2012 at 9:45 PM

Hi,

I heared  that we can read files from hard disk, How to do that and can anyone give me some code??

Any thing about this would help me, Thanks.

May 22, 2012 at 7:58 AM

there are some files which are included in ISO file when we build the project

check out with this code it worked for me..............

int i = 0;   

        List<BlockDevice> bds = BlockDevice.Devices;

            FAT.FatFileSystem fatFs = new FAT.FatFileSystem(bds[1]); 

          List<Sys.Filesystem.Listing.Base> bsList = fatFs.GetRoot(); 

          Sys.Filesystem.Listing.Base bs;         

  Console.WriteLine("Contents of the dirs....");       

                for (; i < bsList.Count - 1; i++)   

        {                bs = (Sys.Filesystem.Listing.Base)bsList[i];    

                 Console.WriteLine(bs.Name +"    "+ bs.Size+" Bytes");

            }

Coordinator
May 22, 2012 at 8:01 AM
We dont have ISO reading support yet, so you'll have to have a FAT32 (?) formatted PATA/IDE harddisk..

On Tue, May 22, 2012 at 8:58 AM, rajbloggy <notifications@codeplex.com> wrote:

From: rajbloggy

there are some files which are included in ISO file when we build the project

check out with this code it worked for me..............

int i = 0;

List<BlockDevice> bds = BlockDevice.Devices;

FAT.FatFileSystem fatFs = new FAT.FatFileSystem(bds[1]);

List<Sys.Filesystem.Listing.Base> bsList = fatFs.GetRoot();

Sys.Filesystem.Listing.Base bs;

Console.WriteLine("Contents of the dirs....");

for (; i < bsList.Count - 1; i++)

{ bs = (Sys.Filesystem.Listing.Base)bsList[i];

Console.WriteLine(bs.Name +" "+ bs.Size+" Bytes");

}

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


May 24, 2012 at 6:22 PM

download the development kit u can find sample code related to file operations.

u can find it in "\cosmos-91276\source2\Users\Kudzu" , have a look at the file "Breakpoints.cs"  u can easily understand