A huge huge thanks for all the assistance in my previous thread. It has me well on my way. The problem right now is I am trying to read input from a file using the '<' redirection.
I however, am completely lost on how to do this. Searching google has yielded tons of results for the normal '>' redirection (and it's many variants) but no clear example on how to do this with C.
I figured out that this redirection is considered input from a console, meaning I can't just consider the file contents to be command line arguments (and therefore use the argv  in the main), so that dream died quickly.
How can I read input from a file into my C executable? If anybody could provide a very basic example of this I would be so incredibly grateful!