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?
Jump to Post
Based on the example string you provided I'm not sure why you couldn't just use args.Split(' ') to parse s:\nt\dd.tsv \t s:\nt\dd.out since there is a clear space between the arguments.
However... if you're intent on splitting based on string values you might want to look into setting the …
All 6 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.