   command line arguments
  im trying to write a simple command line application that uses command line arguments (or at least has the option of using them). and i seem to be having a problem with the space being the seperation of an argument. i need an easy way to combine command line arguments because some of them might use more than one arg. the arguments are supposed to be as such:1. absolute or relative path of some kind2. file name or part of a file name (such as *.txt)3. string of text(this program does something a lot like windows key + f cept it actualy finds text in files unlike the stupid windows find thing which NEVER works)basicaly i need a way of finding where one ends and the other begins and account for the fact a user might fudge up. and it HAS to be able to accept input with spaces that arent necessarily different args (itll be put in a different argv but its still part of the same "argument").im at a loss as to where to begin really because input can be ambiguous... so error handling will be hard. code isnt necessary, just an idea of what to start looking for first. or an idea for the beginning of an algorithm.   Bungo! 
  I see what you''re saying with one argument being split into two elements in argv. That should easily be rectified by requiring the user to prepend each and every argument with a specific symbol; commonly ''-'' or ''/''. so even if spaces occur among one argument and is split, you''ll just have a function to read through the array from the first symbol and continue through other elements until another is found and then copy up to but not including that char. But then you''ll have to figure any of the ways the user might screw something up and deal with it. I guess a straighforward thing to do is to concatenate the argv array into a whole string (if using c++) and then use some of the stl functions to help you parse out what you need from it quickly and compactly. ;  Have your users quote their text with spaces. 