title: Retrieving data from the operating system and storing it in the program
body: <p>If a text file is stored with lots of words in it like cat, rat, hat, bat all stored in <code>words.txt</code>, a notepad how can i retrieve each word separately and get them stored in a string array <code>String []</code> MyArray using a FileStream and <code>StreamReader</code> object. It has get stored like <code>MyArray[0] = "cat"</code>, MyArray[1] = "rat".</p>