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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -