How can I read text from a text file in dropbox?

ODxT

Estimable
Feb 23, 2015
2
0
4,520
1
I have tried solutions from many other threads but they do not seem to work.
I am using Visual Studio 2013.
This is my code:


Imports System.Net

Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim myWebClient As New System.Net.WebClient
Dim file As New System.IO.StreamReader(myWebClient.OpenRead("https://www.dropbox.com/s/hvkx5zoqxs5ddjb/Version.txt"))
RichTextBox1.Text = file.ReadToEnd()
file.Close()
End Sub
End Class


But I always get it back as the html document, please let me know what I have done wrong.

 
Thread starter Similar threads Forum Replies Date
T Apps General Discussion 1
I Apps General Discussion 3
Z Apps General Discussion 1
I Apps General Discussion 1
K Apps General Discussion 3
tomsguideUS Apps General Discussion 0
J Apps General Discussion 1
G Apps General Discussion 0
G Apps General Discussion 0
J Apps General Discussion 3
Hastibe Apps General Discussion 11
L Apps General Discussion 1
A Apps General Discussion 1
D Apps General Discussion 0
T Apps General Discussion 2
V Apps General Discussion 3
noonin Apps General Discussion 4
Dark Lord of Tech Apps General Discussion 3

ASK THE COMMUNITY