Hello! I'm trying to read from a text file that's being redirected to my program.


./program < test.txt

The code looks like this:


// read redirection
char buffer[50][200] = {0};