Because normally, the user will name the file (which I'm stating as "test1.txt") as an argument. Meaning that, to run this, the use will type: /nameofprog test1.txt
So in other words, the program can't initially be told how long the name of the input file will be. I guess I couldn't just write strlen("argv[1].titles") or something like that.