M
Malainho
Guest
Hello People,
I need load a text file in TextBlock.
I try this:
Dim resourceUri As Uri = New Uri("/acordo.txt", UriKind.Relative)
tbAcordo.Text = System.IO.File.ReadAllText(resourceUri)
But i get error in ReadAllText() because it is necessary a String value.
I try convert the Uri to String but not work.
I want work with relative path to file.
How i solve this problem ?
Thank you
Continue reading...
I need load a text file in TextBlock.
I try this:
Dim resourceUri As Uri = New Uri("/acordo.txt", UriKind.Relative)
tbAcordo.Text = System.IO.File.ReadAllText(resourceUri)
But i get error in ReadAllText() because it is necessary a String value.
I try convert the Uri to String but not work.
I want work with relative path to file.
How i solve this problem ?
Thank you
Continue reading...