Code Comments
Programming Forum and web based access to our favorite programming groups.I now have an exe file for my program, which is basically a wannabe text grep... But I am unable to find anything about passing it arguments from the command line on help desk, or anywhere else for that matter. Is there a function for passing arguments at the command line, say findfile search-phrase input.txt output.txt Right now I'm just having user prompts after they type in the file name, but it would be more convenient to be able to just type in the arguments at the command prompt. Thanks for your help,
Post Follow-up to this message"audibel" <audibel@sbcglobal.net> wrote: > I now have an exe file for my program, which is basically a wannabe text > grep... But I am unable to find anything about passing it arguments from > the command line on help desk, or anywhere else for that matter. Is there > a function for passing arguments at the command line, say > > findfile search-phrase input.txt output.txt > > Right now I'm just having user prompts after they type in the file name, > but it would be more convenient to be able to just type in the arguments > at the command prompt. Search for "argv" in the help desk. It's a vector which contains the command line arguments.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.