I'm making a program that read CSV files based on the arguments of the C program called read-log
example
$ ./read-log file1.csv
$ ./read-log file1.csv file2.csv nofile.csv
But I also need my program to read files when using the unix command cat
but when I input:
$ cat file1.csv |./read-log
The program doesn't get any argument.