I have a list of words that I'd like to read into a list of strings. I'm having some trouble implementing this in a metro app with the Windows Runtime

enter image description here

Normally I'd use the follow code:

<!-- language: lang-vb -->
'load text file in to word list
Using sr As New StreamReader(filePath)
    Do While sr.Peek <> -1
        WordList.Add(sr.ReadLine.Trim)
    Loop
End Using

I'm trying to use the code from The right way to Read & Write Files in WinRT

<!-- language: lang-vb -->
Dim folder = Windows.ApplicationModel.Package.Current.InstalledLocation
folder = folder.GetFolderAsync("Data")
Dim file = folder.GetFileAsync("WordList.txt")
Dim readFile = Windows.Storage.FileIO.ReadTextAsync(file)

But it gets tripped up on the second line and I wouldn't know what to do with it even if it didn't. I've killed the Await keyword because for some reason it can't see the Async attribute on the GetFolder method.

Here's a File Access Sample application from the Windows Store App Dev Center

<!-- language: lang-vb -->
Private Async Function LoadWords() As Task
    Dim fileName As String = "WordListComma.txt"
    Dim fileContent As String = ""
    Dim file As StorageFile
    Dim numBytesLoaded As UInt32
    Dim size As UInt64

    file = Await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(fileName)

    If file Is Nothing Then Throw New Exception(String.Format("Could not find file {0}", fileName))

    Using readStream As IRandomAccessStream = Await file.OpenAsync(FileAccessMode.Read)
        Using dataReader As New DataReader(readStream)
            size = readStream.Size
            If size <= UInt32.MaxValue Then
                numBytesLoaded = Await dataReader.LoadAsync(CType(size, UInt32))
                fileContent = dataReader.ReadString(numBytesLoaded)
            End If
        End Using
    End Using

End Function

Also the Await keyword must be used when calling Async functions and also can only exist inside of methods that themselves have been decorated with the Async keyword, so it needed to get added to the LoadWords() signature.