shell script prog help

How to write a program to
store the list of ordinary files and the directory files in the specified directory in two files called dir.dat and ord.dat. Then print the largest directory and largest file?

Thread closed due to violation of rule 6: Homework.