make program visual studio 2012 delete all after third /. file.txt with urls : http://www.exp.org/forum/member.php?1-Morrus&language=uk
http://expl.com/forum/member.php/1-%D0%90%D0%B4%D0%BC%D0%B8%D0%BD?langid=5

output:

http://www.exp.org/

http://expl.com/

need help with program visual studio 2012