Reading Directory Contents using RDir
Article Metadata
#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


(no comments yet)