This is a bit of a newbie question I suppose.

I want to create command line program that will accept "standard in" for arguments. I want to be able to make my program scriptable so that a script looks something like...

______
#!/usr/loca/bin/myProgram

scriptArguments here
______

or from the command line...

% myScript.txt > myProgram

or

% cat myScript.txt | myProgram

I'm not really sure how to go about this. Should I be using the NSFileHandle class somehow?



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to