23 Jan
2001
23 Jan
'01
6:56 p.m.
How can I read the command-line arguments passed to the program. For instance, if I run my compiled program by typing "./foo hello -o file.txt", I wish to access the list ["hello", "-o", "file.txt"] somehow. TIA, Shlomi Fish ---------------------------------------------------------------------- Shlomi Fish shlomif@vipe.technion.ac.il Home Page: http://t2.technion.ac.il/~shlomif/ Home E-mail: shlomif@techie.com The prefix "God Said" has the extraordinary logical property of converting any statement that follows it into a true one.