.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2008, 06:13 AM
robadob123 robadob123 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 23 robadob123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 56 m 7 sec
Reputation Power: 0
Read .txt file off internet

im making a program that reads a url from a text file on the internet then loads that url in the default web browser, i know the script for reading off a local computer but it doesnt work for the internet, help please

Reply With Quote
  #2  
Old February 13th, 2008, 07:21 AM
Death Goddess's Avatar
Death Goddess Death Goddess is offline
Crushing a million faces
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 282 Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level)Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level)Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level)Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level)Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level)Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level)Death Goddess User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 11 h 25 m 14 sec
Reputation Power: 89
Comments on this post
robadob123 agrees: Thanks i think its the right thing
__________________
Baby soft, because its made from real babies.

Reply With Quote
  #3  
Old February 13th, 2008, 11:40 AM
robadob123 robadob123 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 23 robadob123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 56 m 7 sec
Reputation Power: 0
just spent about 1-2 hours trying to sort it but its real confusing do i have to create a class for webclient and for stream? ive tryed copying the examples of the msdn site but they dont even work so i cant exactly edit them

Reply With Quote
  #4  
Old February 13th, 2008, 11:48 AM
f'lar's Avatar
f'lar f'lar is offline
Senior WeyrLeader
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Aug 2003
Location: WI
Posts: 4,130 f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level)f'lar User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 11 h 49 m 55 sec
Reputation Power: 977
Send a message via Google Talk to f'lar
Code:
Dim wc As New System.Net.WebClient
Dim URL As String = wc.DownloadString("http://mysite.com/url.txt")
Process.Start(URL)
Comments on this post
robadob123 agrees!
__________________
Primary Forums: .Net Development, MS-SQL, C Programming
VB.Net: It's not your father's Visual Basic.

[Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers]

Reply With Quote
  #5  
Old February 13th, 2008, 11:58 AM
robadob123 robadob123 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 23 robadob123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 56 m 7 sec
Reputation Power: 0
thanks with web start its answered the question about how to open in wbe broswer aswell

just one small question, why cant i do say
Code:
Process.Start(URL)
on a button click and the rest onload?



edit... i just realised it needs to be not in a sub for it to be shared for subs ... ty again..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Read .txt file off internet


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT