[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
coding for standard in
From: |
tgate |
Subject: |
coding for standard in |
Date: |
Sat, 9 Dec 2006 18:45:56 -0800 |
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?
- coding for standard in,
tgate <=