1 Attachment(s)
Assigning Words to an Array
Ok so i have this assignment. I have a shell file that reads and writes and tokenizes the file and takes the words and adds them to the output file. The shell works fine but for the assignment, i need to do little bit more.
I need to pass the words into an array of strings obvi. But heres the catch, if a word appears more than once in the text file, the array is only suppose to contain the word once. Basically, what the array is to contain is a lit of alll the words in the text file.
So i need to know how to fill the array from the text file and and if anyone has a method on how to alphabetize the words, that would help too.
I use Textpad to write code