C
csharpula csharp
Hello I have the following line I need to read inside the command line:
executable -dir directory -type type1 -file file name
I want to read this line and to parse it inside variables,
how can i parse the file name if it can consist of couple of words with
spaces such as "file num 22"?
Can I avoid the following while?
while (++i<args.Length && !(args.Contains("-dir")) &&
!(args.Contains("-type")))
{
Name.Insert(Name.Length, args)
}
}
executable -dir directory -type type1 -file file name
I want to read this line and to parse it inside variables,
how can i parse the file name if it can consist of couple of words with
spaces such as "file num 22"?
Can I avoid the following while?
while (++i<args.Length && !(args.Contains("-dir")) &&
!(args.Contains("-type")))
{
Name.Insert(Name.Length, args)
}
}