redirect a spawned process's output, or how to read ZIP
Is there a way to read the contents of a zip file in C? I just need the file list, dates, sizes.
I realize I can
This does work up to a point. but the redirect does not work so I can not capture the program's output. I looked all over the place for how to set a spawned process's stdout but found no solution when using spawn().
ret = _spawnl(P_WAIT, this_path, this_path, "-vbf", "test.zip", ">temp", NULL);
... or pipe, or whatever (would be faster than intermediate temporary file, or could be the same)
I am perfectly willing to see any other easier way to read a ZIP file.