For Programmers: Free Programming Magazines  


Home > Archive > Scheme > November 2004 > Passing command-line arguments...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Passing command-line arguments...
audibel

2004-11-02, 3:56 am

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,



Anton van Straaten

2004-11-02, 3:58 pm

"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.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com