Let's say I have a string like function arg1 arg2 "arg3 is long"
.
How could I obtain the output of
String[0] = "function"
String[1] = "arg1"
String[2] = "arg2"
String[3] = "arg is long"
Let's say I have a string like function arg1 arg2 "arg3 is long"
.
How could I obtain the output of
String[0] = "function"
String[1] = "arg1"
String[2] = "arg2"
String[3] = "arg is long"
This question's answer has a number of options for you to explore, but they are tailored for real command-line arguments.