Namespaces
Variants
Actions

Reading Directory Contents using RDir

Jump to: navigation, search
Article Metadata

Article
Created: vasant21 (31 May 2007)
Last edited: hamishwillee (26 Jul 2012)
#include <f32file.h>
Link against: efsrv.lib
RDir myDir;
TInt err;
User::LeaveIfError(myDir.Open(aFs, KDirName, KEntryAttNormal|KEntryAttDir));
TEntry currentEntry;
while( true )
{
err=myDir.Read(currentEntry);
if (err)
{
// No more entries, or some other error
break;
}
 
// Do Something with this entry //
}
myDir.Close()
 
// EOF signifies no more entries to read
if (err != KErrEof)
{
User::LeaveIfError(err);
}

Links

See also: Directory Monitoring

This page was last modified on 26 July 2012, at 07:28.
61 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved