+ 1

C Sharp Url Help

So i just dived into C# and i wanted to explore around creating functions that i feel at home with. My strongest language is PHP and writting / reading files from url is how im able to host and create my games. im trying to do the same with C# but i cant seem to get it to click. All i want is to read a .Txt file with some names on there and turn them into a Variable. PHP can do this task very ease but im stuck against a rock and a hard place here with C# I followed every step on SoloLearn and Omg its amazing! but it still wont work. help please! https://code.sololearn.com/c8vIsYKxfzxl/?ref=app

18th Oct 2018, 12:20 AM
Joey War
Joey War - avatar
3 Réponses
+ 4
ODLNT is correct. The HTTPS represents the protocol and should be followed by two forward slash. I've made one for you and feel free to refer code below which will display the result as expected. 😉 https://code.sololearn.com/cVlbH2T181HQ/
18th Oct 2018, 6:00 AM
Zephyr Koo
Zephyr Koo - avatar
0
Zephyr Koo omg thank you! mannn im so stupid i cant even do a correct txt read in C sharp ~.~ thank you so much! if anything else ill ask you
18th Oct 2018, 11:04 AM
Joey War
Joey War - avatar
0
i have another question* Zephyr Koo lets say the text file has the word "cat" and it reads it. and i want the console to check if that word is there. and if it is there it will then display "The cat is here" and if not, it will keep on looping untill the word is there. in Php i can use $_GET as a loop but i dont see a guide on Sololearn about it on C Sharp. please help me if you can 🙏🙏 thank youuu
18th Oct 2018, 12:02 PM
Joey War
Joey War - avatar