Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
Above is the standard homework response---Please give some more context for you question, and show us some examples of things you have tried. For example, are you familiar with the basic commands for reading from a file and for making a directory?
Also, I'm wondering why you never posted back in your first thread?