Dear Loungers,
I’m reading a text file generated by legacy app, and writing code to parse it into fields. The file uses a delimiter that cannot by typed at the keyboard, so it appears as a weird-looking character in the stream. The legacy programmer says its “~001”.
// this does not work
string [] HoursWorkedFields = System.Text.RegularExpressions.Regex.Split(line,”01″);
This is what is returns (paste from Immediate window): ? HoursWorkedFields[0]
“00065ALLAM2510197300 40.00”
How can I represent the character as a delimiter? How can I test a char to find out what its ASCII code is?
Any help gratefully received,