I want to be able to call something like "wc -l file.c" and pipe that information back into the program I'm running. I've googled and found some information on popen, but that doesn't seem to help any. I've tried to consider some redirecting or piping but to no avail. Any ideas?

Thanks in advance