c# - Get url address from url file -



c# - Get url address from url file -

i'm pretty new c# (only month of experience). i'm working on project url address .url file have no thought how go doing so.

i've tried googling maintain getting "text url", not other way around. help awesome! input in advance! i'm new site, if need reply more questions, please allow me know!

edit: basically, i'm trying convert net shortcuts in favorites folders addresses. example, turn "google" shortcut http://www.google.com. hope helped.

will quite easy think, seek like:

string line = file.readlines(filename).skip(1).take(1).first(); string url = line.replace("url=",""); url = url.replace("\"",""); url = url.replace("base","");

kind of ugly works, advise using regular expressions validate resulting url.

c# string url text

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -