I want to split a string:This is the code i had written:C:\Documents and Settings\Tan\My Documents\Trainee\Payroll System\binBut an error occurs with this error message:Code:Dim strSplitted() As String = System.Text.RegularExpressions.Regex.Split(strFileName, "\")How can i split it?An unhandled exception of type 'System.ArgumentException' occurred in system.dll
Additional information: parsing "\" - Illegal \ at end of pattern
Please guide, thank you.




Reply With Quote