I got a *.vfd format file..

i have to implement a DIR command to open the directories present in this file.. i have to write a C++ code to do this task..

Please help me out...