0

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"
ixchi
  • 2,239
  • 2
  • 24
  • 23

1 Answers1

1

This question's answer has a number of options for you to explore, but they are tailored for real command-line arguments.

Community
  • 1
  • 1
Fls'Zen
  • 4,514
  • 1
  • 28
  • 37