Here's something that is probably simple but so far I haven't figured out how to do it: I have a console application that I want to pass three arguments to when I call it. The three arguments are the input file name, the field delimiter, and the output file name. The input file will be a delimited file and I need to put each field on a line into a list, so I'm using the split() function to separate the fields. The problem I'm having is the split() function seems to want a char value for the field separator but the delimiter I've passed in from the commandline is in the form of a string (i.e. "\t" for a tab separator). So far I cannot get the thing to convert the string to a char and I don't understand why not. Am I going about this the wrong way and there's an easier way to do what I want to do?
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.