/** * Simple example showing how to use stdin_to_temp * * Compile with: * g++ -O3 -o stdin_to_temp_demo stdin_to_temp_demo.cpp * * Run examples: * cat file1 | ./stdin_to_temp_demo * cat file1 | ./stdin_to_temp_demo | cat >file2 * cat file1 | ./stdin_to_temp_demo dummy1 dummy2 | cat >file2 * ./stdin_to_temp_demo file2 * ./stdin_to_temp_demo file2 * */ #include using namespace igl; #include using namespace std; int main(int argc,char * argv[]) { // Process arguements and print to stderr for(int i = 1;i