[wplug] off topic.... C programming question

Sal Mangiapane salm at servanttechnology.com
Mon Mar 10 17:41:14 EST 2003


Hi all,

I am attempting to write a command line C program that will receive an input file that it will process in the format:

cat input.file | my-C-program > output.file


Can I tell the size of the input.file prior to processing?  Or do I have to read in the whole input.file and calculate it myself? 

Thanks in advance,

Sorry about being off-topic.  But, this will really help me.

sal
Sal Mangiapane

PS  The program will run on Linux, 2.4.17 kernel.  :)




More information about the wplug mailing list