OneDrive Sharing link has an illegal character

  • Thread starter Thread starter BenjaminD.public.name
  • Start date Start date
B

BenjaminD.public.name

Guest
I am getting an "Illegal character in PathName" exception in VS2017


I think it is the question mark. Should I just keep getting links and hope one will be legal?


The link was obtained by Copy Link in oneDrive Share




Private FileLink As String =


"Game1.txt"




Private MyReader as StreamReader




When I attempt to open the file using "MyReader = File.OpenText(FileLink)" I get




System.ArgumentException
HResult=0x80070057
Message=Illegal characters in path.
Source=mscorlib

Continue reading...
 
Back
Top