please if anyone has an idea on solving this problem tel me because i really need help before tuesday;
the question is:
write a program in linux that displays names of all the files and directories in your home directory ur program should display name of a file followed by (is a file), or name of a directory followed by (is directory).
the last line of the output of ur program should display total number of files and directories found on ur home directory and total size of all files and directories
.
HINT:u can use system() call with parameter "ls-l>filename" to store output in a temperary file .read this file line by line to get type ,name,and size of each entey (file r directory),make sure u delete the temporary file before terminating ur program.