I have a VB.NET application that reads a text file to write to a database table. The text file may contain a "Return" character which my application does not recognize and causes the application to error out.
I read one line from the text file into a string and parse the string using .Substring(Index,Count) into several string variable. When I try to parse the line that contains the "Return" character, it would error out. How can I look for the "Return" character before parsing it into a variable?
I read one line from the text file into a string and parse the string using .Substring(Index,Count) into several string variable. When I try to parse the line that contains the "Return" character, it would error out. How can I look for the "Return" character before parsing it into a variable?