I need a help. I want to write a program that it is like a command and prompt (cmd)in windows. In one part I need to understand the details of the files and folders I have in a special place,like date that they are created or the size of the file and folders.
For example I need something like this:
4096 , Feb 15 2006 , c programming , directory
3192 , June 12 2006, file2 , file
the first number is size. The next part is creation date. The next one is the name of file or folder and the last one is type (file or folder).
can anyone help me?
@kbw :this is my homework and I'm not allowed to use windows.h.
@ajh32: You are right. I want to write a program to simulate the terminal of a operating system. but I use Visual Studio.
Any way, does any body have any suggestion or idea for me?
I really need it.
Are you really sure you're not allowed to use windows.h? I think you're not allowed to write a Windows GUI app'. Just that windows.h has a lot of code that you will need to access the filesystem etc. Please clarify.