Is there a function in Visual Basic that does the same thing as file_get_contents in PHP.
I’m a PHP programmer, and I want to write a few scripts to download some data from an API I’m using.
Is there a function in Visual Basic that does the same thing as file_get_contents
Share
In VB.Net (I’m assuming that’s what you’re looking for), I think you’d want to look at the
WebClient.DownloadFilemethod (http://msdn.microsoft.com/en-us/library/ez801hhe.aspx) if the file you want is on the web. If it’s a local file you could use…I’m not familiar with PHP’s file_get_contents but if it’s asynch you can call
WebClient.DownloadFileAsync