Have a function in VB that requires me to get all files with .pdf and .rtf file extensions. When trying to include a second parameter, I realized it will not accept the second argument.
Is there an easy way to do this still?
Dim s() As String = System.IO.Directory.GetFiles(Server.MapPath("PrintableForms.aspx").Replace("PrintableForms.aspx", "Forums\"), "*.pdf")
error:
System.InvalidCastException: 'Conversion from string "*.rtf" to type 'Integer' is not valid.'