-
concatenate argv
What's the best way to concatenate the argv parameter of the
main function in order to build a full path name with spaces in it?
eg.
MyProgram.exe C:\Base Directory\Directory 2\Filename w spaces.txt
in this example, argc would equal 6. I would like to concatenate
all the argv's in order to build one large string. What's the best
way to do this?
Thanks
-
nm, i developed a quick way to do it
thx anyways
-
The best way is just to surround the path name in quotes, and then it will automatically end up as a single string:
Code:
MyProgram.exe "C:\Base Directory\Directory 2\Filename w spaces.txt"