I need to be able to open a text file, and read all the lines and store them into an array.

I did this in a Windows Application like so:
vb.net Code:
  1. Dim StringArrayOfTextLines() As String = File.ReadAllLines("file\wordlist.txt") 'load wordlist
  2.         Dim MaxAmount As Integer = StringArrayOfTextLines.GetUpperBound(0) + 1

How can I do this in a Windows Mobile Application?